New
#11
you should be able to run cmd command in PowerShell, is there an error?
you can also run sfc withing powershell just like in CMD.
you should be able to run cmd command in PowerShell, is there an error?
you can also run sfc withing powershell just like in CMD.
How do you run command prompt?
Try creating a shortcut on your desktop for C:\Windows\system32\cmd.exe
If the new shortcut that you create works then the old one is faulty and needs to be repaired.
Otherwise likely issue is that command prompt was disabled by administrator in group policy.
Could also be option #3 or option #7 in this guide:
Command Prompt not working or opening in Windows 11/10
SFC fixed things, cmd still wont open on its own without PS
Beginning system scan. This process will take some time.
Beginning verification phase of system scan.
Verification 100% complete.
Windows Resource Protection found corrupt files and successfully repaired them.
For online repairs, details are included in the CBS log file located at
windir\Logs\CBS\CBS.log. For example C:\Windows\Logs\CBS\CBS.log. For offline
repairs, details are included in the log file provided by the /OFFLOGFILE flag.
Also try
dism /online /cleanup-image /restorehealth
If all else fails, try to repair Windows by doing an in-place upgrade:
Repair Install Windows 10 with an In-place Upgrade
@sdowney717
run gpedit.msc as Admin and head to:
User Configuration/Administrative Templates/System
on the right make sure that "Prevent access to the command prompt" is set to "Not Configured"
then run gpupdate.exe in PS if you changed the setting.
Just checked and it is set to not configured
- - - Updated - - -
Nope. Click on it, and mouse turns into blue circle for about 20 seconds, then nothing.
Takes a LONG time to open properties, but run permissions on the file look normal
- - - Updated - - -
just did the restore health, rebooted, cmd still will not run by itself.
I might do the inplace repair, so far things are working ok otherwise.
- - - Updated - - -
Ran sfc again, no errors
Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.
Try the new cross-platform PowerShell https://aka.ms/pscore6
PS C:\WINDOWS\system32> cmd
Microsoft Windows [Version 10.0.19045.2965]
(c) 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>
- - - Updated - - -
You know when I click cmd,exe in file manager, it takes a long time to think about whatever it is doing and fails to do anything.
But when I startup chrome browser in about 2 seconds it is up and running.
In PS, type cmd and it is instantly running cmd in ps