Почему не работает выполнить в windows 10

Updated on Apr 28, 2025

«I go to Search box and type CMD and hit Enter. But no Command Prompt window pops up. Then I right-clicked on the Windows button and select Command Prompt or Command Prompt (Admin), nothing worked. 
I don’t know what’s going on. I want to create a new partition with Command Prompt. And now, here is the problem, what can I do? Is there a way that can help me fix this issue? How?
«

It seems that a significant number of Windows 10 users have encountered with the CMD command not working issue after they update to a new system. So how to make CMD command to work again becomes a new problem. 

Here below, you’ll find One quick fix and Quick reliable Methods to effectively fix Command Prompt not working error in Windows 10 PC:

Workable Solutions Step-by-step Troubleshooting
Fix 1. Use CMD Alternative Run CMD alternative software > Right-click target partition to «Check File System»…Full steps
Fix 2. Enable CMD to Work Type environ in Search to open System Properties in Advance > Click «Environment Variables»…Full steps
Fix 3. Perform System Restore Type system restore in Search to open System Restore > Select recent restore point…Full steps

Quick Fix: Use CMD alternative software

If you can’t use CMD Prompt to create partition or clear disk or even convert a disk to MBR/GPT, don’t worry. Professional CMD alternative software — EaseUS Partition Master will effectively help you do the job. 

And you can also apply EaseUS Partition Master to effectively fix and repair bad sectors and corrupted file systems that block CMD from working in Windows 10:

Step 1. Open EaseUS Partition Master on your computer. Then, locate the disk, right-click the partition you want to check, and choose «Advanced» > «Check File System».

choose Check Partition

Step 2. In the Check File System window, keep the «Try to fix errors if found» option selected and click «Start».

check the pop-up instructions

Step 3. The software will begin checking your partition file system on your disk. When it completes, click «Finish».

finish partition check

If not, follow Method 1 or Method 2 to get this issue solved then.

Method 1. Update PATH System Environment Variable to enable CMD to work

1. Type: environ in the Search box and select «Edit» the system environment variables to open «System Properties with Advanced».

Fix Command Prompt not working issue with PATH.

2. Open Advanced Tab on «System Properties» and click «Environment Variables».

Update PATH System Environment Viriables to fix CMD not working issue.

3. Click «PATH» in Environment Variables and click on «Edition».

Repair CMD to work again by updating PATH System Environment Variables.

4. Create «New entry» and add: C:\Windows\SysWow64\, then click «OK».

Make Command Prompt back to work again in Windows 10.

5. Reboot PC and then you shall be able to use CMD in Windows 10 again.

Method 2. Try System Restore to fix Windows 11/10 Command Prompt not working issue

1. Click «Start» and type: System Restore in the Search box.
2. Click «System Restore» and then select a recent restore point that you’ve created, click «Next».
3. Confirm the selected restore point is the right one and click «Finish» to restore Windows 10 to the previous version which would allow you to run Windows 10 without any problems.
After this, you can apply CMD to help you delete files, create a partition or even convert disk partition table without any problems by then.

Все способы:

  • Способ 1: Альтернативные методы запуска
    • Вариант 1: Создание ярлыка «Командной строки»
    • Вариант 2: Запуск ОС в «Безопасном режиме»
    • Вариант 3: Новая задача в «Диспетчере задач»
  • Способ 2: Приостановка антивирусной программы
  • Способ 3: Создание новой учетной записи
  • Способ 4: Проверка целостности системных файлов
  • Способ 5: Восстановление системы
  • Вопросы и ответы: 0

В Windows 10 предусмотрен аналогичная консоль – «Windows PowerShell», которая также работает с различными командами, в том числе и специфическими, недоступными для выполнения в обычной «Командной строке». В некоторых способах вам может понадобиться именно «PowerShell».

Способ 1: Альтернативные методы запуска

Если по какой-то причине не работает стандартный метод запуска «Командной строки», в целях проверки можно воспользоваться альтернативными методами.

Вариант 1: Создание ярлыка «Командной строки»

Проблема с запуском «Командной строки» может быть связана с тем, что меню «Пуск» работает некорректно. В этом случае попробуйте создать ярлык консоли на рабочем столе или в любом другом месте, чтобы попытаться запустить средство через него:

  1. Кликните по свободной области рабочего стола или внутри папки правой кнопкой мыши и наведите курсор на пункт «Создать». В дополнительном меню выберите «Ярлык».
  2. не работает командная строка в windows 10-01

  3. Откроется новое окно, где нужно указать путь к исполняемому файлу «Командной строки». В строку вставьте C:\Windows\System32\cmd.exe. Нажмите на кнопку «Далее».
  4. не работает командная строка в windows 10-02

  5. В следующем окне задайте имя ярлыку и кликните по «Готово».
  6. не работает командная строка в windows 10-03

После этого попробуйте запустить «Командную строку», дважды щелкнув по ярлыку.

Следует отметить, что при этом способе терминал будет открываться без прав администратора, но исправить ситуацию просто.

  1. Для этого щелкните ПКМ по созданному ярлыку и перейдите в его «Свойства».
  2. не работает командная строка в windows 10-04

  3. В системном окне перейдите на вкладку «Ярлык» и щелкните по кнопке «Дополнительно».
  4. не работает командная строка в windows 10-05

  5. Отметьте пункт «Запуск от имени администратора» и подтвердите действие.
  6. не работает командная строка в windows 10-06

Читайте также: Решение проблемы с неработающей кнопкой «Пуск» в Windows 10

Вариант 2: Запуск ОС в «Безопасном режиме»

Если не работает «Командная строка» в Windows 10, вероятно, вы недавно установили приложение, которое могло повлиять на работу консоли. Также это происходит из-за деятельности вирусов, которые попали на ПК и получили доступ к системным файлам и данным. Чтобы проверить, так ли это, попытайтесь открыть программу, запустив Windows 10 в «Безопасном режиме».

Существует несколько методов зайти в «Безопасный режим», включая настройки утилиты «Конфигурация системы» и параметры загрузки ОС. Детальнее о них читайте в нашем отдельном руководстве. Отметим, что в нем есть способ с командой для «Командной строки», но ее можно использовать и в «Windows PowerShell».

Подробнее: Безопасный режим в Windows 10

не работает командная строка в windows 10-07

Если в «Безопасном режиме» запуск «Командной строки» не вызывал затруднений, то придется удалять все недавно установленные программы, затем по одной их переустанавливать, чтобы понять, какая из них вызывает проблему. Процесс довольно утомительный, но является единственным, особенно если важно не трогать системные настройки.

Читайте также: Установка и удаление программ в Windows 10

Вариант 3: Новая задача в «Диспетчере задач»

Когда обычным способом открыть «Командную строку» не получается, можно попробовать запустить консоль из другого места – создать новую задачу с правами администратора в «Диспетчере задач» Windows 10:

  1. Щелкните ПКМ по свободной области рабочей панели и из меню выберите «Диспетчер задач».
  2. не работает командная строка в windows 10-08

  3. Кликните по вкладке «Файл», затем по пункту «Создать новую задачу».
  4. не работает командная строка в windows 10-09

  5. В дополнительном окне в строке введите cmd, отметьте пункт запуска с расширенными правами и подтвердите действие.
  6. не работает командная строка в windows 10-10

После этого должно открыться окно консоли, а новая задача отобразится в списке «Диспетчера задач» на вкладке «Процессы».

Читайте также: Восстановление работоспособности «Диспетчера задач» в Windows 10

Способ 2: Приостановка антивирусной программы

Чтобы решить проблему, попробуйте приостановить работу стороннего антивирусного решения. Такие программы иногда блокируют не только софт от других разработчиков, но и системные средства, например открытие или работоспособность консоли в целом.

Универсальной инструкции по отключению нет, потому как такой софт деактивируется различными способами. В одних случаях достаточно вызвать контекстное меню значка в трее, в других придется покопаться в настройках. Наш автор разбирал, как приостановить работу наиболее популярных приложений для защиты ОС в отдельной статье.

Подробнее: Отключение антивируса

Если вы обнаружили, что после этого «Командная строка» начала вновь стабильно работать, то, вероятно, придется использовать другое антивирусное решение или встроенную защиту Windows 10.

Способ 3: Создание новой учетной записи

Некоторые файлы, связанные с учетной записью Microsoft, могли быть повреждены в результате сбоев и ошибок, что влияет на запуск «Командной строки». Попробуйте создать новый аккаунт в системе, чтобы проверить это предположение. В Windows 10 для этого можно использовать оснастку «Учетные записи пользователей» или возможности приложения «Параметры». О методах мы писали ранее на нашем сайте.

Подробнее: Создание новой учетной записи в Windows 10

не работает командная строка в windows 10-12

После того как новая учетная запись Microsoft создана, зайдя в систему под этим аккаунтом, попытайтесь запустить «Командную строку».

Способ 4: Проверка целостности системных файлов

Этот способ поможет исправить ситуацию, при которой могли оказаться поврежденными важные файлы системы, отчего те или иные штатные инструменты перестают корректно функционировать. В Windows предусмотрены специальные утилиты, которые проверяют и системные файлы, и их хранилища на целостность, а при обнаружении возможных неполадок инструменты автоматически исправляют их или предлагают пользователю варианты решений.

У нас на сайте есть отдельная инструкция по использования таких утилит, как SFC и DISM, которые помогают восстановить целостность системных файлов. Но в руководстве их запуск осуществляется через «Командную строку». Поскольку в вашем случае она не работает, то используйте аналогичную консоль – «Windows PowerShell», отыскав его по названию в меню «Пуск».

Следует отметить, что в остальном алгоритм действий из материала ничем не отличается: запускаете «PowerShell» и вводите все те команды, которые разобраны в статье по ссылке ниже.

Подробнее: Использование и восстановление проверки целостности системных файлов в Windows 10

не работает командная строка в windows 10-13

Способ 5: Восстановление системы

Еще один действенный способ решить проблемы с запуском штатного средства – это восстановление состояния системы к предыдущему состоянию. То есть придется откатиться до того момента, когда в работе консоли не наблюдалось неполадок. Метод подойдет, если в результате критических ошибок в ОС или деятельности вредоносных утилит были повреждены важные программные компоненты. Однако на ПК должна заранее быть активирована функция автоматического создания контрольных точек, в противном случае способом воспользоваться не удастся.

Подробнее: Откат к точке восстановления в Windows 10

не работает командная строка в windows 10-14

После этого все недавно внесенные настройки и установленные приложения, которые могли вмешаться в работу «Командной строки», будут сброшены и удалены.

Наша группа в TelegramПолезные советы и помощь

Command Prompt (CMD) not working or opening in Windows 10? Check the 8 solutions in this tutorial. Some tips for fixing Command Prompt not responding, cannot run CMD as administrator Windows 10 are also included. If you want to handle Windows 10 issues like data loss, format/repartition hard drive, system backup and restore, you can turn to MiniTool software.

Today many advanced users still favor Command Prompt to troubleshoot Windows 10 computer problems and quickly conduct some administrative operations and tasks in Windows OS.

However, when trying to open Command Prompt, some people meet the Command Prompt not working/opening Windows 10 error. In this situation, you can’t use the popular CMD utilities like CHKDSK, SFC, DiskPart or any other commands in Command Prompt to check and repair Windows 10 errors or execute other actions

You can check the 8 solutions below to fix Command Prompt not working Windows 10 error and gain access to CMD again. You can also find a data restore tool to help get your lost and deleted data back.

Also read: Learn the best tips and tricks for data recovery hard drive on Windows 11/10/8/7.

How to Fix Command Prompt Not Working Windows 10

  1. Restart Your Windows 10 PC
  2. Temporarily Disable Antivirus Software
  3. Modify PATH Environment Variables Settings
  4. Create a New User Account
  5. Run SFC with Windows PowerShell
  6. Create a Shortcut for CMD Application
  7. Check If Command Prompt Works in Safe Mode
  8. Perform a System Restore

Fix 1. Restart Your Windows 10 PC

Restarting computer can sometimes help fix many minor computer issues. You can click Start -> Power -> Restart to reboot your Windows 10 computer.

Then you can press Windows + R, type cmd, and press Enter (press Ctrl + Shift + Enter to open elevated Command Prompt) to see if you can open Command Prompt now.

If computer restart doesn’t help, continue to check other fixes below.

Fix 2. Temporarily Disable Antivirus Software

The second move you should take is to temporarily disable any installed third-party antivirus software in your Windows 10 computer.

Sometimes antivirus software may interfere with other computer processes, and make Command Prompt not working in Windows 10 or cannot run CMD as administrator in Windows 10.

To make Command Prompt work normally again, you can temporarily disable all third-party antivirus software of totally remove them. Your computer is still protected by Windows’ own antivirus application Windows Defender if you remove all other antivirus software.

Check if CMD not working/opening error has been fixed, if not, continue to try other ways.

Tip: MiniTool Power Data Recovery – the best free data recovery software lets you retrieve deleted files from Windows computer, memory card, USB, external HDD, SSD, etc. 100% clean program.

MiniTool Power Data Recovery TrialClick to Download100%Clean & Safe

Fix 3. Modify PATH Environment Variables Settings

Some people have the issue that Command Prompt opens and closes immediately in Windows 10. You can try to edit the PATH system environment variables to see if it can fix this error. Check the detailed steps below.

Step 1. Click Start, type environ, and select Edit the system environment variables.

Step 2. Now you are under Advanced tab in System Properties window. You can click Environment Variables button.

Step 3. In Environment Variables window, you can click Path and click Edit button.

update path of system environment variables

Step 4. Next you can click New button, and create a new entry with a name C:\Windows\SysWow64\, and click OK.

Step 5. After that, you can restart your Windows 10 PC to make the changes take effect. Attempt to launch Command Prompt again to see if you can open it.

Fix 4. Create a New User Account

If you are facing can’t run Command Prompt as Administrator on Windows 10 problem, you may try to create a new user account to see if you can access Command Prompt. Some users find that they can open and run Command Prompt as administrator when logging on with another user account. Check how to create a new user account below.

Step 1. You can press Windows + I to open Windows Settings, and click Accounts.

Step 2. Next select Family & other people in the left pane, and click Add someone else to this PC.

Step 3. Then you can click I don’t have this person’s sign-in information link, and click Add a user without a Microsoft account.

Step 4. Continue to type a username and enter a password to create a new user account.

create a new user account

Step 5. After you created the new user account, you can click Start and click the User icon to switch to the new user account.

Step 6. Try to open Command Prompt in Windows 10 again to see if the CMD (Command Prompt) not working/opening issue has been solved.

Fix 5. Run SFC with Windows PowerShell

In case the Windows 10 Command Prompt not working issue is caused by corrupted system files, you can use Windows PowerShell to run SFC command to detect and fix corrupted or missing system files.

Step 1. You can press Windows + X or right-click Start, and select Windows PowerShell (Admin) to run PowerShell as administrator.

Step 2. Then you can type sfc /scannow in PowerShell window, and hit Enter to run SFC command to check and repair Windows 10 system files. After the SFC scan is finished, you can restart your computer and open Command Prompt again.

run SFC Scannow in PowerShell

Click to Tweet

Fix 6. Create a Shortcut for CMD Application

If Command Prompt is not working/opening on your Windows 10 computer, you may also try to create a desktop shortcut for cmd.exe to see if you can launch Command Prompt with the shortcut.

Step 1. You can right-click the empty area on your desktop, click New and select Shortcut.

Step 2. In the Create Shortcut window, you can type cmd.exe and click Next. Type Command Prompt for the name of the shortcut, and click Finish. Then you can click the shortcut to open Command Prompt in normal mode.

create a shortcut for Command Prompt

Step 3. If you want to run CMD in administrator mode by clicking the shortcut, you can right-click the Command Prompt shortcut and select Properties. Tap Shortcut tab, click Advanced, tick Run as administrator, and click OK. Click Apply and OK.

Then when you click the Command Prompt shortcut next time, it will run CMD as administrator.

fix cannot run CMD as administrator windows 10

Fix 7. Check If Command Prompt Works in Safe Mode

Some newly installed applications may cause Command Prompt not working. You can follow the steps below to start Windows 10 in Safe Mode to see if the Command Prompt can work in Safe Mode.

Step 1. You can click Start -> Power, then press Shift key on the keyboard and click Restart option.

Step 2. After your computer reboots to a blue screen, you can click Troubleshoot -> Advanced options -> Startup Settings -> Restart.

click Startup Settings

Step 3. Then you can press F4 to boot computer into Safe Mode. After you start your computer into Safe Mode, you can run Command Prompt to see if it works in Safe Mode.

If Command Prompt works in Safe Mode, then you can remove recently installed applications to see if the CMD not working Windows 10 error can be fixed.

If all the above ways don’t help you fix “Command Prompt (CMD) not working/opening in Windows 10” or the “can’t run CMD as administrator in Windows 10” error, then you have another way to try: restore your Windows OS to a previous healthy state.

Before you conduct the System Restore, it’s advised you back up all important or essential data on your Windows 10 computer.

MiniTool ShadowMaker, professional free PC OS and data backup software, helps you easily back up selected files/folders, partitions/disks, or Windows operating system to external hard drive, USB drive, network drive, etc. Windows system restore is also perfectly supported.

If your computer encounters problems, you can easily restore important data and restore the OS from backup with this free PC backup software.

This best free Windows 10 backup and recovery tool also supports file sync, automatic schedule backup, incremental backup scheme, etc. You can even use its built-in WinPE Bootable Media Builder to create a bootable USB drive/disk to boot your Windows computer.

Free download MiniTool ShadowMaker on your Windows 10/8/7 PC, and check its easier user guide below.

MiniTool ShadowMaker TrialClick to Download100%Clean & Safe

Step 1. Launch MiniTool ShadowMaker and click Keep Trial button. Then you can click Connect button under This Computer. On the main UI, you can click Backup button.

Step 2. Next you can click Source section to select which files and folders you want to back up. If you want to create a system image backup, you can select Disk and Partitions and choose the system related partitions to back up.

Step 3. Then go back to the main UI, and click Destination section to specify a destination path to store the backups. At last, click Back up Now button to start the backup process at fast speed.

backup data with MiniTool ShadowMaker

Fix 8. Perform a System Restore to Fix CMD Not Working

After you backed up your important data, you can then perform the System Restore to fix the Command Prompt not working/opening error in Windows 10.

Step 1. You can click Start, type “create a restore point”, and select the top result to access System Properties window.

Step 2. Under System Protection tab, you can click System Restore button, and follow the instructions to select a restore point to revert your Windows 10 computer to a previous working healthy state.

ix CMD not working with System Restore

If your computer won’t start, you can access advanced options in Windows 10 to perform a System Restore.

How to Check/Fix Disk Errors and Manage Partitions without Command Prompt

If you want to use Command Prompt CHKDSK or SFC to check and repair disk errors, or use DiskPart utility to manage hard drive partitions, but CMD is not working, you can turn to a free disk partition manager – MiniTool Partition Wizard – to do all these things with ease.

MiniTool Partition Wizard is a professional free hard drive partition manager for Windows 10/8/7. It allows you to easily create/resize/extend/format/wipe hard drive partitions, convert disk partition format, check and fix file system errors, detect bad sectors on hard drive, etc.

MiniTool Partition Wizard

How to Recover Lost Data from Windows 10 PC/Laptop

Aside from the Windows 10 Command Prompt not working problem, if your computer has some other severe problems and lose some data, you can use MiniTool Power Data Recovery to easily recover lost data.

MiniTool Power Data Recovery is a professional data recovery program for Windows. You can use it to recover any deleted/lost files from Windows 10 computer, external hard drive, USB drive, SD card, etc. This best data recovery software helps you tackle different data loss situations. The free edition allows you to recover up to 1GB data for free. You can use it to perform SSD data recovery, SD card data recovery, and more.

MiniTool Power Data Recovery TrialClick to Download100%Clean & Safe

MiniTool Power Data Recovery

How to Fix Command Prompt Not Responding Windows 10

If you’ve launched some Windows services like disk checking with SFC or CHKDSK, then you should wait to let the disk checking process finish, since it may damage your PC if you force to interrupt it.

However, if the Command Prompt is not responding for a long time, you can press Ctrl + C or Ctrl + Z, or simply click the Close button at the top-right to stop any running process in Command Prompt.

If the measures above don’t work in closing Command Prompt, you can force to close cmd.exe using Task Manager. You can press Ctrl + Shift + Esc to open Task Manager window, and find the process named “cmd” or “Windows Command Processor” under Processes tab. Right-click the CMD process and click End Task.

fix Command Prompt not responding in Task Manager

If all the ways above can’t fix the Command Prompt not responding issue, then you have the last draw: restart your PC.

Click to Tweet

Bottom Line

This post provides 8 solutions to help you fix Command Prompt (CMD) not working Windows 10 error, hope one of them can help you out.

Some useful tools like data backup, system backup and restore, hard drive partition management, data recovery programs are also provided to help you keep your data safe in your Windows 10 computer.

If you have any questions about how to use MiniTool ShadowMaker, MiniTool Power Data Recovery, MiniTool Partition Wizard, please contact [email protected].

Command Prompt Not Working FAQ

What to do when Command Prompt is not working?

This post provides 8 solutions with detailed guides to help you fix this error. You can try them one by one to solve CMD not working/opening problem.

How do I open the Command Prompt?

The frequently used way is to press Windows + R, type cmd, and hit Enter key to open Command Prompt. If you want to open CMD with administrator privileges, you should press Ctrl + Shift + Enter.

How do I fix Command Prompt that automatically closes?

You can press Windows + R, type cmd /k in Run box, and hit Enter. The /k argument tells cmd.exe to open, run particular command, and then keep the window open. On the contrary, typing cmd /c will tell Command Prompt to open, execute a command, and then close window when it’s done.

How do I run the Command Prompt as an administrator?

You can press Windows + R, type cmd, and press Ctrl + Shift + Enter to run Command Prompt as an administrator.

Contents:

  • Command Prompt Not Working Overview
  • How to Open Command Prompt on Windows 10
  • How to Fix Command Prompt Cannot Run CMD Commands Windows 10?

Command Prompt Not Working Overview

You will sometimes need to run cmd commands in Windows 10, but to find that Command Prompt has stopped working or this Command Prompt won’t open on Windows 10. In this case, you cannot run SFC or any other commands in order to perform some actions.

Or in some situations, you can observe that Command prompt running as administrator is out of work in Windows 10 or Windows 7. When you run cmd.exe command or open the batch files, you may receive a message that “the command prompt has been disabled by your administrator”.

How to Open Command Prompt on Windows 10

There are some common ways you can use to open Command Prompt.

1. To open Command Prompt, just enter cmd in the search box and then hit Enter key to get into it.

2. Press Win + R to open the run box, type cmd and click OK.

3. Right-click Windows button, and then select Command Prompt or Command Prompt (Admin).

4. Open This PC, you will see the address bar. And then type cmd to open it.

But if you still noticed that cmd prompt is not appearing, maybe it is time to deal with this problem.

So there are several methods you can take to fix can’t open Command Prompt on Windows 10 error. After that, you are free to run the cmd command to achieve numerous actions.

How to Fix Command Prompt Cannot Run CMD Commands Windows 10?

Since Windows 10 command line is out of work, the commands cannot be performed as you wish. Now you need to repair Command Prompt Windows 10.

This article will mainly help you fix CMD not working error from the perspective of changing environmental variables and some methods toward system problems.

Solutions:

  • 1: Edit the System Environment Variables
  • 2: Check Windows 10 Registry Editor Type
  • 3: Create a New User Account
  • 4: Fix Command Prompt Has Been Disable by Administrator
  • 5: Restore Windows to Fix Command Prompt Won’t Work

Solution 1: Edit the System Environment Variables

It is useful that you struggle to modify the settings of system environment variables to resolve Command Prompt open and close immediately.

You might as well determine to add a new path for the Windows system.

1. Type System Environment Variables in Start search box and then stroke Enter to move into System Properties.

2. In System Properties window, under Advanced tab, click Environment Variables.

environment variables in advanced tab

3. In the Environment Variables window, choose Path and then click Edit.

select path in environment variables

4. Then hit New to create a new entry and name it C:\Windows\SysWow64\.

new entry windows syswow64

Finally, click OK to save changes.

All finished, manage to restart your PC to take effect.

This time you are supposed to make attempt to open and run cmd commands in Command Prompt in Windows 10 as Command Prompt is unable to open and work issue will have been fixed.

Solution 2: Check Windows 10 Registry Editor Type

Apart from the system environment variables, you would also need to make sure the Windows system environment type is correct. Only in this sense can Command Prompt not working on Windows 10 be solved and you are able to perform commands when the line is out of work.

1. Press Windows + R to activate the Run box and then enter regedit in the box. At last, click OK to go on.

2. Then in Registry Editor, navigate to HKEY_CURRENT_USER\Environment.

hkey current user environment

3. Under Environment, on the right panel, check whether the type is REG EXPAND SZ.

At the same time, go as the path HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment and make sure the file type in REG-EXPAND-SZ. Just do the same thing in Registry Editor.

Once you have checked the value type of environment in Registry Editor, manage to open Command Prompt and run it on Windows 10. Maybe Command Prompt not responding will not come to you anymore.

Solution 3: Create a New User Account

If you cannot open command prompt normally, try to create a new user to see if it works when using command prompt. Some people said that after creating a new user, the command prompt works fine. If you don’t know how to create an account, there is guidance here: how to create a new local account on Windows 10.

Solution 4: Fix Command Prompt Has Been Disable by Administrator

If your Command Prompt is out of work and show the error as “The Command Prompt has been disabled by your Administrator”, maybe you should enable it again. And here provide the automatic way.

For the automatic way, you should use Advanced SystemCare. It is a professional Windows system cleaner, manager, and protector. It has power functions to help you protect and fix all the system problems and keep the computer running smoothly.

1. Download, install and run Advanced SystemCare on your computer.

2. In Toolbox, click Win Fix. Then this small tool will be downloaded automatically. After it is installed on your computer. You can use it to fix the command prompt does not open problem.

3. Follow Advanced Fix > Security to find command prompt problem in the right side.

4. Click Fix.

Now, you have fixed the command prompt does not work by the administrator permission issue.

Solution 5: Restore Windows

If all the ways above failed to solve CMD Prompt not opening Windows 10, it is likely that the problem lies in the Windows 10 system issues. Maybe it is high time that you exerted efforts to deal with system problems.

The most efficient way is to restore Windows 10. To create a restore point for Windows 10 where there is no Command Prompt not working trouble, it is suggestible that you follow up to the steps below.

1. Search Create a restore point in the search box and then press Enter to get into System Properties window.

2. In System Properties window, select System Restore.

click system restore

3. Then in Restore system files and settings, hit Next to try Windows 10 restore.

next restore system files and settings

4. Then decide to Scan for affected programs and click Next.

scan for affected programs and next

Here you can not only know about which programs are influenced but also restore your PC to a state, normally to the last time you updated your system.

At this moment, you are qualified to restore Windows 10 and in this process, you cannot exit.

When restoring procedure is finished, you would better begin to check whether Command Prompt Windows 10 is not working persists on your PC.

Or you have to reset Windows 10 to see if it can make CMD backs to work.

In a word, to get rid of CMD Prompt not working on Windows 10, it is rather necessary for you to make reference to the solutions in this thread.

Related Articles:

Fixed: Windows Powershell Missing from Taskbar

Fixed: Local Group Policy Editor Missing on Windows 10

Fixed: DISM Error 87 on Windows 10

Jane He

Jane is a tech-writer and content writer with an endless passion for exploring computer problems and technologies. She loves solving problems and helping others with challenges in dealing with technical problems. Hence, she has been writing articles for Tencomputer.com to provide technical support and suggestions for people.

Many users complain that Command Prompt appears and disappears immediately in Windows 10/11. How to fix this annoying problem? Now, this post of MiniTool shares 8 proven solutions. Let’s have a try.

As it’s well known to us all, Command Prompt (CMD) is a powerful Windows built-in command line tool. It is commonly used by people to deal with various works such as CMD rename files, CMD ping test, CMD list files, CMD copy files, CMD list drives, CMD check WiFi passwords, and more.

Sometimes, however, Command Prompt is not always working properly. Some users report that Command Prompt appears and disappears on Windows 10/11. Here’s a true example from the answers.microsoftware.com forum:

Hi, I keep getting a Windows 10 Command prompt window appears and disappears. It opens up and closes as quickly as it popped up. In the CMD window, it says «c:Windowssystem32cmd.exe». Any help would be appreciated.

https://answers.microsoft.com/en-us/windows/forum/all/windows-10-command-prompt-window-appears-and/4de6d60e-b6c6-42cd-847d-db8b1e5ab1d3

Why Command Prompt flashes then disappears Windows 10/11? After analyzing extensive user reports and references, we find the problem can be caused by many reasons, including improper system settings, conflicting processes, virus infection, and corrupted system files. Don’t worry. Here are 8 feasible methods to fix the issue.

# 1. Perform a Clean Boot

Some users from the Microsoft forum reported that the “CMD pops up and disappears” issue can be solved by performing a clean boot. This method can help you determine which program or service causes the conflict with Command Prompt. Once found, you can uninstall the program and check if Command Prompt works properly.

# 2. Scan Your Computer for Any Viruses or Malware

Another possible reason for the “Command Prompt shows up and disappears immediately” error is virus or malware infections. To rule out this factor, we recommend you perform a full scan of your computer for viruses.

Step 1. Type virus in the search box and click the Virus & threat protection app from the top result.

Step 2. Inside the Windows Defender Security Centre, click the Scan options option on the right panel.

Step 3. Select Full scan and tap on Scan now to start the full virus scan. Then you need to wait a while until the scan completes. 

full scan virus

Once done, restart your computer and check if Command Prompt randomly appears and disappears.

# 3. Disable Command Prompt from Startup

Sometimes the “Command Prompt shows up and disappears immediately” issue can occur due to the changes in the Startup settings. Here you can try disabling the Command Prompt from Startup in Task Manager and see if it works.

Step 1. Press Ctrl + Shift + Esc keys altogether to open the Task Manager window.

Step 2. Navigate to the Startup tab, right-click the Command Prompt service and select Disable. Then reboot your machine and open Command Prompt again to check if the issue gets fixed.

disable CMD in Task Manager

# 4. Close All Conflicting Processes in Task Manager

In addition, we highly recommend you close all third-party processes or services that may interfere with the functionality of Command Prompt. Just simply open Task Manager as we explained above, right-click the process, and select End task. Then repeat the same procedure to end other running tasks.

select End task

# 5. Remove the CMD Shortcut from the Startup Folder

Some users reported that the “Command Prompt randomly appears and disappears” error can be solved by removing the CMD shortcut in the Startup folder. It may seem strange but worth trying.

Step 1. Press the Win + R keys to open the Run dialog box, and then type the following text in the box and hit Enter.

 %ProgramData%MicrosoftWindowsStart MenuProgramsStartUp

open Startup folder using the Run window

Step 2. In the Startup folder, find and delete the CMD shortcut file. Then restart your computer and check if the problem persists.

# 6. Tell Command Prompt to Stay Open

If the Command Prompt appears and disappears constantly on Windows 10/11, you can try running a specific command to keep the CMD window open. A specific command can be used to tell Command Prompt to stay running. To do so, just simply open the Run dialog box, and then type cmd /k ipconfig /all in it and hit Enter.

# 7. Disable OfficeBackgroundTaskHandlerRegistration

Some users found that the OfficeBackgroundTaskHandler task is also related to the “Command Prompt comes up and goes away” issue. In this case, you can follow the steps below to disable this task.

Step 1. Open the Run box, and then type taskschd.msc in it and hit Enter.

Step 2. In the Task Scheduler window, go to the Task Scheduler Library > Microsoft > Office path.

Step 3. Find the task named OfficeBackgroundTaskHandlerRegistration from the right pane, and then right-click it and select Disable.

disable OfficeBackgroundTaskHandlerRegistration

# 8. Install the Latest Windows Updates

As you know, Microsoft releases some patches and features that can help fix some common system-related issues. Here you can try installing the latest Windows updates to fix the Command Prompt issue. For that:

Step 1. Press the Win + I keys to open the Settings app and navigate to the Update & Security section.

Step 2. Click on the Check for updates button and check if there are any pending updates. Then install them on your Windows 10/11 PC.

Further readingIf you enter some issues like file system corruption and low disk space on Windows 10/11, don’t worry. MiniTool Partition Wizard can help you fix them easily by checking file system errors, extending/resizing partitions, analyzing disk space, upgrading to a larger hard disk, etc.

Понравилась статья? Поделить с друзьями:
0 0 голоса
Рейтинг статьи
Подписаться
Уведомить о
guest

0 комментариев
Старые
Новые Популярные
Межтекстовые Отзывы
Посмотреть все комментарии
  • Как отменить работу с обновлениями windows 10 если она уже началась
  • Изоляция графов аудиоустройств windows 10 отключает звук
  • Сбой подключения с ошибкой 691 windows 10
  • Как посмотреть содержимое каталога в командной строке windows
  • Dragon dictate for windows