Command prompt closes when i try to open it

sininetool

Prominent
Feb 10, 2018
3
0
510
Already tried registry "DisableCMD" and user configuration, also it works on the hidden administrator account. Managed to take this picture before it closed:
JAvZfWK.png
 
Solution
Have you tried making a new local account and see if it works on it? Helps to make user admin.

If it works, it could mean normal user is corrupted.

You can easily copy the contents of your normal users c:\users\username folder onto new one to give them same access as previous user. Then all that needs setting up is browsers again, maybe Steam logins and Onedrive (if you used them). Takes 5 minutes, I have done it myself.

It might be all you need given the built in admin account has access.
does powershell do the same?

Are you running cmd as admin?

Do you use avast?
I had the same problem on the same day as you (Jan 10 2018). Then I remembered that earlier in the day Avast had put a file consent.exe in its virus chest. I restored that file and everything worked as normal again. So I guess that Avast is throwing up a false positive for that file at the moment and we both were the victims. If you are not using Avast, it might nevertheless be worth checking your consent.exe file. I do hope that this helps.

https://answers.microsoft.com/en-us/windows/forum/windows_10-performance/cant-run-powershell-or-cmdexe-as-administrator/735d8a8e-2647-4265-a9fd-33b67f603c12

does cmd work in safe mode?
 


Powershell works, i am running cmd as admin, i don't have avast or any other antivirus besides malwarebytes and essentials and cmd doesn't work in safe mode
 
Glad powershell still works, try this

right click start button
choose powershell (admin)
type SFC /scannow and press enter
once its completed, copy/paste this command into same window:
Repair-WindowsImage -Online -RestoreHealth
SFC fixes system files, second command cleans image files, re run SFC if it failed to fix all files the first time,and restart PC
 


the scan didn't find anything
Windows Resource Protection did not find any integrity violations.
and windowsimage repair returns this:
Path :
Online : False
ImageHealthState : Healthy
RestartNeeded : False
cmd still not working after restart
 
Have you tried making a new local account and see if it works on it? Helps to make user admin.

If it works, it could mean normal user is corrupted.

You can easily copy the contents of your normal users c:\users\username folder onto new one to give them same access as previous user. Then all that needs setting up is browsers again, maybe Steam logins and Onedrive (if you used them). Takes 5 minutes, I have done it myself.

It might be all you need given the built in admin account has access.
 
Solution