CMD.EXE error 0xc0000142

August 2nd, 2016

I was messing around with Webroot disabling some windows srvices to get more free RAM and i accidently disabled/blocked CMD.EXE.
Now everything works fine just when i open programs (free alarm clock, eset online scanner) it does weird things and its impossible for me to install or deinstall programs cause then i get all kind of cmd errors ( 0xc0000142 ).
I also cannot access the command prompt to to sfc/scannow..
how do i get rid of the errors??

Answer #1
it sounds like you will have to do a reinstall of o.s
Answer #2
Try using system restore, If it doesn’t help, Then you’d be best doing an OS reinstall as suggested.
Answer #3
these services are disabled:
Image
Image
Image
Image
Which should i enable again so that cmd works again
Answer #4
this is something quite useful I ran across:
DISM
Dism /Online /Cleanup-Image /CheckHealth
Dism /Online /Cleanup-Image /ScanHealth
Dism /Online /Cleanup-Image /RestoreHealth
along with:
SFC /SCANNOW
might help repair corrupt files/system from an online/ms source. worked wonders for me. no more errors.
eightforums.com/tutorials/26512-dism-fixing-component-store-corruption-windows-8-a.html as a reference
you will need an elevated/administrator command prompt cmd.exe to use this. if you can get that far in the repair this will repair corrupt files.
possible to install dualboot and repair from the second os, which is precisely what I did. beats having to reinstall all the apps and settings you have on os 1.
Answer #5
these services are disabled:
Which should i enable again so that cmd works again

I can’t see the pics as you’ve used a banned image host!
But better just enable all of em. You should never disable services you know nothing about.
If re-enabling em doesn’t help, Then just use system restore as I previously suggested.
And for the record, Just because your PC is running slow, It doesn’t mean you need to fiddle with disabling services! This rarely has anything to do with it (Nor does it clear up much RAM when some of em are disabled!)
Slowdowns are usually the result of heavy (bloatware) security software, Virus/Spyware (Check CPU usage on task manager), A dying HDD (Get it checked with hard disk sentinel) or just lack of RAM (This too, Can be checked on task manager, Just see how much of it is currently in use, And compare it to your physical amount of RAM. I.E if you got 1GB of ram, And the usage comes very close or beyond it, That’s very bad for performance! Once your physical RAM is all used up, It starts using the pagefile, aka virtual memory on your HDD, Which isn’t nearly as fast as actual RAM!)
Answer #6
this is something quite useful I ran across:
DISM
Dism /Online /Cleanup-Image /CheckHealth
Dism /Online /Cleanup-Image /ScanHealth
Dism /Online /Cleanup-Image /RestoreHealth
along with:
SFC /SCANNOW
might help repair corrupt files/system from an online/ms source. worked wonders for me. no more errors.
eightforums.com/tutorials/26512-dism-fixing-component-store-corruption-windows-8-a.html as a reference
you will need an elevated/administrator command prompt cmd.exe to use this. if you can get that far in the repair this will repair corrupt files.
possible to install dualboot and repair from the second os, which is precisely what I did. beats having to reinstall all the apps and settings you have on os 1.

I have Windows 7 Ultimate Edition x64, so that wont work.
But will put the windows disk in and say update system?? (will my files etc be the same??)
and will repair pc on startup do anything??
Answer #7
these services are disabled:
Which should i enable again so that cmd works again

I can't see the pics as you've used a banned image host!
But better just enable all of em. You should never disable services you know nothing about.
If re-enabling em doesn't help, Then just use system restore as I previously suggested.
And for the record, Just because your PC is running slow, It doesn't mean you need to fiddle with disabling services! This rarely has anything to do with it (Nor does it clear up much RAM when some of em are disabled!)
Slowdowns are usually the result of heavy (bloatware) security software, Virus/Spyware (Check CPU usage on task manager), A dying HDD (Get it checked with hard disk sentinel) or just lack of RAM (This too, Can be checked on task manager, Just see how much of it is currently in use, And compare it to your physical amount of RAM. I.E if you got 1GB of ram, And the usage comes very close or beyond it, That's very bad for performance! Once your physical RAM is all used up, It starts using the pagefile, aka virtual memory on your HDD, Which isn't nearly as fast as actual RAM!)

I cant re-enable the services.
i have 4GB of rams and it does seem to go quicker now..
Answer #8
“I have Windows 7 Ultimate Edition x64, so that wont work.” incorrect
let me boot to windows 7 and check dism: I have ultimate 7 64 bit, so I will verify.
you can repair with install disc at boot but be careful with what you click, you can easily end up reinstalling.
I will edit with my findings on dism, which is preferable to me.
here is the 7 fix but there are scripts out there that change the dism run location but you can google all that if you care to. the 7 fix is:
first try:
sfc /scannow /offbootdir=d:\ /offwindir=d:\windows
“Trying to run sfc/scannow and response is “Windows Resource Protection could not start the repair service” answers.microsoft.com/en-us/windows/forum/windows_7-system/trying-to-run-sfcscannow-and-response-is-windows/60895ef9-357f-46d3-8e8d-449ae2d2d4c2?page=2
different commands to use if files are in use/options
SFC /SCANNOW which will try to repair corrupt files=cbs.txt will log the results: this will give you options depending on results, works on 7 eightforums.com/tutorials/3047-sfc-scannow-command-run-windows-8-a.html
my results: Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Windows\system32>sfc /scannow
Beginning system scan. This process will take some time.
Beginning verification phase of system scan.
Verification 100% complete.
Windows Resource Protection did not find any integrity violations.
C:\Windows\system32>
more options if you find corrupt files which work on 7 ultimate 64 bit
these give options that work on 7, 3 most certainly does
eightforums.com/tutorials/3047-sfc-scannow-command-run-windows-8-a.html
OPTION THREE there are 2 other options of course (to cut to the chase navigate to: C:\Windows\Logs\CBS\CBS.log open it then look at the dates and find the errors. fix as you see fit. you will need to do research and work to go this route but will be worth the effort for the knowledge.
How to See and Read Only the “SFC” Scan Results from the CBS.LOG NOTE: When SFC runs, it logs it’s actions into the C:\Windows\Logs\CBS\CBS.log. The steps in this option will show you how to see only the specific SFC entries with the [SR] tags in this CBS.log. This can be helpful to show you what files SFC could not fix automatically if you wanted to try and manually replace them.
1. Open an elevated command prompt in Windows 8.
2. In the elevated command prompt, copy and paste the command below and press Enter.
NOTE: This will place a sfcdetails.txt file on your desktop with only the SFC scan result details from the CBS.LOG in it.
Code:
findstr /c:”[SR]” %windir%\Logs\CBS\CBS.log >%userprofile%\Desktop\sfcdetails.txt
3. Close the elevated command prompt. 4. Open the sfcdetails.txt file on your desktop to see the SFC scan details in the CBS.LOG. 5. When finished, you can safely delete the sfcdetails.txt file afterwards if you like.
Answer #9
okay now i am in when you restart your pc and press f8, there is also a command prompt there which i can access but now if i say sfc/scannow it just says how to do it. but i dont know how?
how do yyou perform scannow when you push f8?
Answer #10
you have to beat an elevated (run as administrator) command prompt, type in sfc /scannow (inside windows) just as I posted above. last time I was at an f8 options I do seem to recall an administrator command prompt. if the command fails, do a repair from any win 7 ultimate 64 bit disk. a lot of research needs to go into a dism on win 7 so we might put that in the too hard to do box.
as you can see from my post above sfc /scannow works on your system.
edit: you might try this if you get errors sfc /scannow /offbootdir=d:\ /offwindir=d:\windows
from a page I will give you:
Note: Depending on how your computer is setup, the Command Prompt, when used from outside of Windows, doesn’t always assign drive letters in the same way that you see them from inside Windows. In other words, Windows might be at C:\Windows when you’re using it, but D:\Windows from the Command Prompt in System Recovery Options.
In most installations of Windows 8 and Windows 7, C: usually becomes D: and in Windows Vista, C: is usually still C:. To check for sure, look for the drive with the Users folder on it – that will be the drive Windows is installed on, unless you have multiple installations of Windows on multiple drives.
pcsupport.about.com/od/toolsofthetrade/ht/sfc-scannow.htm
looking into it, I would try safe mode, then try to open an elevated prompt/. really if all this fails google the various conjugations of dos problems and you are bound to find something that will do what you need. amazing that these os’s still rely so heavily on dos.

 

| Sitemap |