Home > Common Problem > body text

Fix: Command Prompt doesn't work or won't open on Windows 11 or 10

WBOY
Release: 2023-04-14 19:04:13
forward
5240 people have browsed it

Command Prompt is one of the most important utilities in the Windows operating system and even Windows 11. The Command Prompt terminal also allows you to execute advanced commands and scripts. Many users have reported an issue where the Command Prompt has stopped working or won’t open at all on their Windows 11 PCs.

Here, we have put together a list of troubleshooting methods that can get the Command Prompt back to working status on your Windows 11 system. Continue reading this article.

Fix 1 – Make changes in Windows Services

1. Simply hold down the Windows and R keys to open Run.

2. Enter services.msc and press Enter to open the Windows service.

Fix: Command Prompt doesnt work or wont open on Windows 11 or 10

#3. Find the Performance Logs and Alerts service in the service list.

4.Right click on the service and select Properties.

Fix: Command Prompt doesnt work or wont open on Windows 11 or 10

5. In the Properties window, use the drop-down box to change the Startup type to Automatic.

6. Click Apply and then click OK.

Fix: Command Prompt doesnt work or wont open on Windows 11 or 10

7. Now, back to the Services window, click Start## in the left pane #" link to start the service.

Fix: Command Prompt doesnt work or wont open on Windows 11 or 10

Check if this helps resolve the command prompt issue.

Fix 2 – Edit Local Group Policy Editor

1. Press and hold the Windows and R keys simultaneously to open the Run dialog box.

2. Type

gpedit.msc and press Enter to open the Local Group Policy Editor.

Fix: Command Prompt doesnt work or wont open on Windows 11 or 10

3. In the

Local Group Policy Editor window, select User Configuration.

4. Now, select

Administrative Templates –> System.

5. On the right, look for the setting called "

Block access to Command Prompt".

6.

Double-click Settings to open it.

Fix: Command Prompt doesnt work or wont open on Windows 11 or 10

7. Make sure to select the

Disabled or Not configured option for the Block access to the command prompt setting.

Fix: Command Prompt doesnt work or wont open on Windows 11 or 10

8. Click

Apply, and then click OK.

9. Check if the command prompt is open and working properly.

Fix 3 – Create a desktop shortcut

1.

Right-click on any empty area on the ​​desktop.

2. Select

New, and then select Shortcut in the submenu.

Fix: Command Prompt doesnt work or wont open on Windows 11 or 10

3. In the

Create shortcut window, type ## in the text box below the project location #cmd.exe. Click Next.

Fix: Command Prompt doesnt work or wont open on Windows 11 or 104. Name the shortcut

and click

to finish.

Fix: Command Prompt doesnt work or wont open on Windows 11 or 105. After creating this Command Prompt shortcut on your desktop,

right-click

on it and select Properties.

Fix: Command Prompt doesnt work or wont open on Windows 11 or 106. In the

Properties

window, go to the Shortcuts tab and click "Advanced" button.

Fix: Command Prompt doesnt work or wont open on Windows 11 or 107. Here,

check the

Run as administrator option and click OK.

8. Click Apply and then click OK in the Properties window to close it after saving the changes.

Check if you are able to open the command prompt without any issues.

Fix 4 – Perform SFC and DISM Scan

1. Click the Windows key and enter powershell.

2. Right-click Windows PowerShell in the search results and select Run as administrator.

Fix: Command Prompt doesnt work or wont open on Windows 11 or 10

3. Enter the command and execute it.

sfc /scannow
Copy after login

4. Wait for some time until the scan is completed. It will detect and fix problem files on your PC.

Fix: Command Prompt doesnt work or wont open on Windows 11 or 10

5. Check whether the problem has been resolved. If the problem persists, perform a DISM scan.

6. Open Powershell and execute the following command

DISM /在线 /Cleanup-Image /RestoreHealth
Copy after login

7. After the scan is completed, check whether the command prompt is working normally.

Fix: Command Prompt doesnt work or wont open on Windows 11 or 10

Fix 5 – Update path system environment variable

1. Press Windows R to openRun.

2. Type sysdm.cpl to open the system configuration.

Fix: Command Prompt doesnt work or wont open on Windows 11 or 10

#3. Go to the Advanced tab here.

4. Click the Environment Variables... button at the bottom.

Fix: Command Prompt doesnt work or wont open on Windows 11 or 10

#5. In the window that opens, select the Path variable in the User Variables section. Click the Edit... button.

Fix: Command Prompt doesnt work or wont open on Windows 11 or 10

#6. Now, click New to enter the new path for the environment variable.

7. Type C:\Windows\SysWow64\ and click OK.

Fix: Command Prompt doesnt work or wont open on Windows 11 or 10

8. Click OK to close all other open windows.

9.Restart the computer and check if you are able to use the command prompt again.

Fix 6 – Perform a System Restore

1. Click the Windows key and enter restore in the search box.

2. Select to create a restore point in the search results.

Fix: Command Prompt doesnt work or wont open on Windows 11 or 10

3. In the System Protection tab, click the System Restore button.

Fix: Command Prompt doesnt work or wont open on Windows 11 or 10

4. You can select a different restore point or select a recommended restore point.

Fix: Command Prompt doesnt work or wont open on Windows 11 or 10

5. If you chose Select a different restore point, please select a restore point from the list. Click Next.

Fix: Command Prompt doesnt work or wont open on Windows 11 or 10

6.Confirmselected restore point and click Finish to start the process.

Fix: Command Prompt doesnt work or wont open on Windows 11 or 10

#7. After the system restore is complete, check that the command prompt is working as expected.

The above is the detailed content of Fix: Command Prompt doesn't work or won't open on Windows 11 or 10. For more information, please follow other related articles on the PHP Chinese website!

source:yundongfang.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template