Are you seeing the “Process Exited with the Code 1” on your CMD terminal screen while even executing a simple command? After running through several scenarios from several affected users, it seems that a particular registry key is causing the problem. So, you can easily remove the key and fix the problem within a few minutes.
1. Close the Command Prompt terminal. Then, open a new elevated CMD terminal once more and try executing the same code.
2. If you are using the regular CMD app, you can use the Windows Terminal or PowerShell to run the code as well.
Check if the problem is bound to the CMD terminal only.
Fix 1 – Run the command with admin privileges
You should test the command by passing it through a CMD terminal with administrative rights.
1. You can call the search box by pressing the Win key+S keys together.
2. Then, search “cmd“.
3. After that, right-click the “Command Prompt“. Now, in the context menu, tap “Run as administrator“.
This will open the CMD terminal with administrative rights. Then, you can easily run the command and test.
Fix 2 – Remove the Autorun using PowerShell
You can use the PowerShell command line to remove the Autorun key from your computer.
1. Write “powershell” in the search box.
2. When you see the “Windows PowerShell” in the search results, right-tap that and click “Run as administrator“.
3. Upon opening the PowerShell terminal, copy-paste this code and hit Enter to delete the key from the registry.
C:\Windows\System32\reg.exe DELETE "HKCU\Software\Microsoft\Command Processor" /v AutoRun /f
Once you have executed the command, close the PowerShell terminal. Then, restart your system so that this change may take effect.
Fix 3 – Manually remove a value
If executing the command line argument causes any issues, you may manually remove the value using the Registry Editor page.
1. Invoke the search box by pressing the Windows key once.
2. There, write “regedit” and tap “Registry Editor“.
NOTE – You are removing a value from the system registry. Usually, it doesn’t cause any further problems. But, it may cause further issues. So, build a registry backup before you proceed further.
a. Upon reaching the Registry Editor page, click “File” on the menu bar.
b. Later, tap “Export” to make a new registry backup.
3. Visit this location by expanding the left-hand pane –
4. Then, on the right-hand pane, search for the “Autorun” string value.
5. Once you have found that, right-tap the value and tap “Delete” to remove the value.
6. In the prompt to confirm the deletion, tap “Yes” to delete it.
After this, close the Registry Editor.
This change won’t take effect unless you reboot the machine.
Once your computer boots up, open the Command Prompt with administrative rights and check whether you are still seeing Error Code 1 or not.
Fix 4 – Uninstall Anaconda and reinstall it
It seems that the Anaconda toolkit, R and Python distribution platform, is accountable for this issue.
So, if you have uninstalled the older version and have reinstalled the current version, you have to delete the registry value first (Fix 3) and then reinstall it.
Step 1 – Uninstall Anaconda
1. Open the Anaconda terminal as an administrator.
2. Then, copy-paste this code and hit Enter.
conda install anaconda-clean
3. Once the Anaconda package is installed, run this code to fully uninstall the anaconda package.
This will completely remove the current installation of Anaconda distribution.
Step 2 – Remove the registry and reinstall
You should remove the registry value from your computer.
1. Open the Registry Editor.
2. Then, reach this location –
3. Then, select the “Autorun” value and hit Delete to remove it.
After that, close the Registry Editor. Reboot the system.
4. Once you have restarted, install the latest version of the Anaconda installer.
Now, run the setup file, follow the on-screen instructions and complete the process.