Before you proceed, we recommend you creating a System Restore Point so that whenever such errors take place, you can just roll back to the previously known stable state of your computer.
Reset PowerShell to default settings
There are two variants of Windows PowerShell that are installed on an x64 installation of Windows 10 namely:
Windows PowerShell.Windows PowerShell (x86).
If you use an x86 installation, there will just be Windows PowerShell. If you wish to reset Windows PowerShell, you need to replace the shortcut as default. For that, download the default versions of shortcuts for Windows PowerShell from our servers. The link is given at the end of this post. Now, navigate to the following path:
Here,
Reset Command Prompt to default settings
Download this file from our servers. You will get a .reg file inside it. Run the file and if it gives you a security warning, select Run. Select Yes to the UAC or the User Account Control prompt you get. And select Yes to the Registry Editor warning prompt that you get.
You will get a message that the registry configuration has been modified. Reboot your computer and have the Windows Command Prompt with default settings on your computer. If you wish to do it manually, you can do that too. Hit the WINKEY + R button combination to launch the Run utility, type in regedit and hit Enter. Once Registry Editor opens, navigate to the following key-
Now, right-click on the folder named Console on the left side panel and click Delete. Select Yes for the confirmation prompt that you get. Reboot your computer and you will find Windows Command Prompt reset to default settings on your computer. Read: PowerShell has stopped working. That’s it!