Cmd crashes with exit code 1 after uninstalling anaconda

The following answer was (supposedly) initially posted (but later removed) by @Mofi and I got it from the comment of @filippo-vicari. So all credits go to them, thanks for solving this issue! It took me hours to finally find their solution.

Enter the following command into the still working powershell (in my case Anaconda Powershell):

C:\Windows\System32\reg.exe DELETE "HKCU\Software\Microsoft\Command Processor" /v AutoRun /f

It worked for me immediately.
cmd.exe and Anaconda Prompt now work flawlessly again!

Leave a Comment