The 0xC0000142 error may be caused by corrupted Windows files. Run SFC scan and see if it brings any difference. The sfc /scannow command scans all system files, and replaces corrupt files with correct versions. Press ‘Windows + X’ keys. Click on ‘Command Prompt (Admin)’ to bring up elevated command prompt. Note: Click ‘Yes’ if it prompts for permission. In the command prompt type the following command and press Enter 'sfc /scannow'. Hope this helps.