Command prompt won't open

Status
Not open for further replies.

bas_5_

Commendable
Aug 21, 2016
8
0
1,510
Whenever I try to open my CMD, It flashes briefly and closes. I have tried scanning my pc with avg,
SFC /scannow with powershell and a cmd in a second account. I've tried migrating this account to a new one and strangely enough when I open CMD in safe mode it says this app cannot be opened by the built in admin account.
 
Solution
have you tried

right click start button
choose powershell (admin)
copy/paste this command
Repair-WindowsImage -Online -RestoreHealth and press enter


this just cleans the image, try running SFC again after.. it might help.

If that doesn't help, what version of win 10 are you on?
right click start
choose run...
type winver and press enter

If you on version 1709, try this: https://www.tenforums.com/tutorials/16397-repair-install-windows-10-place-upgrade.html

If you on version prior to version 1709, go here and donwload the upgrade assistant (1st button): https://www.microsoft.com/en-au/software-download/windows10

Colif

Win 11 Master
Moderator
have you tried

right click start button
choose powershell (admin)
copy/paste this command
Repair-WindowsImage -Online -RestoreHealth and press enter


this just cleans the image, try running SFC again after.. it might help.

If that doesn't help, what version of win 10 are you on?
right click start
choose run...
type winver and press enter

If you on version 1709, try this: https://www.tenforums.com/tutorials/16397-repair-install-windows-10-place-upgrade.html

If you on version prior to version 1709, go here and donwload the upgrade assistant (1st button): https://www.microsoft.com/en-au/software-download/windows10
 
Solution

bas_5_

Commendable
Aug 21, 2016
8
0
1,510
Hello again, I found out my windows was out of date and I think that may have affected or caused the issue. I updated it and it's functioning again
 
May 11, 2020
1
0
10
I know this is a few years old but im having the same issue. This is what happens when i follow your instructions
unknown.png
 
Status
Not open for further replies.