Powershell is not recognized

In Slate Digital Connect, you may run into the following error message:

On Windows computers, if the message indicates "Command failed: PowerShell [...] is not recognized as an internal or external command" this means you are missing the tool "Powershell" that is by default installed on the Windows platform.

Solutions

  • Sometimes updating Windows can solve the issue
  • Check that PowerShell v1 is installed and that Windows recognizes the command :

    • Press "WIN + R" >  Then type "cmd" > press enter to open a new terminal. 

      • In the command prompt, type "echo %path:;=&echo(%", then press enter
      • Look into the resulting prompt for a line ending with "WindowsPowerShell\v1.0\"
        If you can't find it, then you'll need to fix your Windows path. 

        CMD.png

         

    • Check if PowerShell is installed :
      • Open File Explorer and paste the following location: "C:\Windows\System32\WindowsPowerShell\v1.0\"

        You should find a folder with a file called Powershell in it : 

        PATH1.png


"Rebuild" your default Windows PowerShell path:

Inside the Start menu, search Edit environment variables for your account:

PATH2.png

      • Go to the "Advanced" tab and click on Environment Variables

    • PATH3.png
    •  
    •  
      • You'll see two tabs named "User Variables" and "System Variables".
      • Within the "System Variables" tab, scroll down to find "Path" and double-click

PATH4.png

 

This opens a new window where you'll be able to edit the paths

To add a new line, click on the 'New' button.

Add the following path :

- C:\Windows\System32\WindowsPowerShell\v1.0\

Once you are done, windows should be able to recognize Powershell as a command.


Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

0 comments

Article is closed for comments.