Windows 8 and 8.1 Forums


CMD prompt resulted in (0xc0000142)

  1. #1


    Solo.
    Posts : 2,159
    Windows 10 Pro 64-bit

    CMD prompt resulted in (0xc0000142)


    Anyone can show me why if I tried running command prompt resulted in this?
    Click image for larger version
    So then any program that need to run background command will fail at it.
    Just happened few days ago, not any event that I can suspect as the cause of it. Just recently changing the windows features, activating the netframework 3.5 and run update as requested.
    No way that I can run command sfc /scannow

    Help is appreciated

      My System SpecsSystem Spec

  2. #2


    Posts : 1,851
    8250 x86 + 7 SP1 x86 + Ubuntu 12.04 LTS x86


    Seems like intention behavior caused by malware to me, so that you can't use it to fix anything. Perhaps not.

    You can try seeing if command prompt runs in safe mode then try the sfc command.

    I would also do a good scan with Malwarebytes to see if anything is up.
      My System SpecsSystem Spec

  3. #3


    Solo.
    Posts : 2,159
    Windows 10 Pro 64-bit


    Thanks Gman

    Yes, no way to run command prompt to check on file system integrity, not even in safe mode.
    I just realize that I haven't installed Malwarebytes (just lately recalled it installed only on my seven system )
    I will try to install it and hope it will help.

    Thanks.
    Kevin
      My System SpecsSystem Spec

  4. #4


    Solo.
    Posts : 2,159
    Windows 10 Pro 64-bit


    Installed Malwarebytes. Run full scan, said nothing is suspicious.

    Could be something else.
      My System SpecsSystem Spec

  5. #5


    Posts : 1,851
    8250 x86 + 7 SP1 x86 + Ubuntu 12.04 LTS x86


    Press Windows key+R on the keyboard. Then type the sfc /scannow command in there.

    Or use PowerShell.

    Must be ran with Administrator privileges. Try safe mode or built in Administrator account.

    ------

    Or extract my shortcut then right click on it and choose Run as administrator.
    CMD prompt resulted in (0xc0000142) Attached Files
      My System SpecsSystem Spec

  6. #6


    Solo.
    Posts : 2,159
    Windows 10 Pro 64-bit


    GMan.

    I do have the same shortcut of the command in my desktop. It won't run though with elevated privilege. It returned that screenshot posted.

    Been thinking about refresh it to original state, but I prefer to save it as the last resort.

    Thanks
    Kevin.
      My System SpecsSystem Spec

  7. #7


    Posts : 1,851
    8250 x86 + 7 SP1 x86 + Ubuntu 12.04 LTS x86


    Did you try running the sfc command from administrative PowerShell?
      My System SpecsSystem Spec

  8. #8


    Posts : 2
    Windows 8


    Since I do not know what this CMD prompt shortcut points to and/or what the, what I assume is a BAT file, does but one thing I have found is that there is a bug in Windows 8 in regards to running BAT files. If the BAT file is executed in normal fashion, with out Administrators privileges, it runs as intended but it may not execute or access locked files or locked folders and a need for Administrators privileges exists. Running the same BAT file as Administrator runs in to this error that I found.

    The error is that the default folder while executing the BAT file should be where ever the BAT file is. So if your BAT file is located let's say on d:\test and you execute this BAT file then a simple command like DIR (directory listing of current folder) should list the directory of D:\test. But if you execute the same BAT file with Administrators privilege, the same DIR command will give you listing of folder where the CMD.EXE resides, not where the BAT file is located, which would normally be c:\Windows\system32.

    Therefore, any command in your BAT file that assumes that the current directory is where the BAT file is will now be incorrect and errors will happen.


    Here is a simple example:

    Create a BAT file with only one CMD command, followed by Pause command (so you could see the result). Execute with and then with out the Administrators privilege and you will see the problem.


    Dir
    Pause




    ------

    Atin90
      My System SpecsSystem Spec

  9. #9


    Solo.
    Posts : 2,159
    Windows 10 Pro 64-bit


    GMan

    From what I noticed that any command that utilize the command console won't run. Powershell also fail though I try created xx.lnk or xx.bat and have it run in elevated mode. I'm not familiar with scripting or C#, I tried to run Powershell_ise and run powershell from within also didn't give chance get in, and return the same error.

    Atin.
    Thanks for the response.
    So far that I know windows has included all folders of executable system files in its environment in which I can just type it somewhere then let the system locate it and execute it.
    The problem is something is blocking me to get to it. It could probable be undetected adware or malware, or something else beyond my knowledge. I'm not seriously bothered, but my curiosity drives to seek answer.

    Kevin
      My System SpecsSystem Spec

  10. #10


    Posts : 1,851
    8250 x86 + 7 SP1 x86 + Ubuntu 12.04 LTS x86


    Either malicious malware or something innocuous that simply messed up how Windows works.

    You could try merging the .exe registry file from Brink's tutorial here. Before doing that though, in case 8 is different than 7 (doubtful), I would backup your current key(s) that this writes to:

    Default File Type Associations - Restore - Windows 7 Forums

    (You can view the reg file in notepad to see what keys are involved.)


    If you have a restore point from before this happened, maybe you can restore to that, if needed.
      My System SpecsSystem Spec

Page 1 of 2 12 LastLast
CMD prompt resulted in (0xc0000142)
Related Threads
hey guys, i just got this message when i was trying to shut down my computers, nothing happened tho its still shutting down properly, it happens today, idk what was the cause, as i am not downloading or changing anything. im kinda paranoid so, thank you for your help :)
I have removed the shortcuts from the new menu by mistake by menu editor and i created new one but doesnt prompt to choose a file. Pls see. Thanx 33924
I am making applications with Livecode in Windows 8 and when saving them as exe's they were launching then due to some bad code I had to end the explorer process and reboot my PC and now when I try to run these programs I get the error I tried using sfc /scannow and it found errors but could not...
Solved The DOS prompt in Windows 8 in General Support
I haven't done a DOS copy command for quite some time. I'mwondering if I have forgotten something or is it different using Windows 8 whichis my OS. Today I was trying to copy some files from the DOS prompt but gotmessages of either "wrong syntax", unable to "find file" or"could not find...
Solved Cmd prompt problems? in General Support
Ok, so I've been trying to make a server for a game called minecraft for a while now. In the process, I accidentally screwed up my cmd prompt. I did path and its completely and utterly wrong from what it's supposed to be, you can tell in an instant. I need to know step by step how to fix this. Im...
error 0xc0000142 when i try to play sleeping dogs or any on win8 x64 can anyone tel me how to fix that problem please :mad::mad::mad:
question about cmd prompt in Customization
does anybody know how to use cmd prompt to set your mouse pointer speed? if so could they tell me the command for doing so?
Eight Forums Android App Eight Forums IOS App Follow us on Facebook