Windows 11 Powershell - Most commands not working

Daniel Mielke 1 Reputation point


I've been having the problem for a few weeks now, that my Powershell can no longer execute the majority of my commands.

This includes npm, nvm, and code (to start Visual Studio Code).

Git still seems to work, so does geth, but the rest is gone and I don't know what the problem is.

I've already "reinstalled" powershell, as well as checked my environment variables - everything seems fine there.





I should add, that I upgraded to Windows 11 a few days/weeks before the problem occurred. I think (but I'm not sure), that everything worked immediately after that.

For a while not even git worked out.

I have already reinstalled node.js.

Do you have any idea what this could be?

Thanks in advance!


Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,427 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,407 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Rich Matheisen 45,111 Reputation points

    Does this help? Others having the same problem, but it doesn't seem to be specific to any version of PowerShell.


    0 comments No comments

  2. MotoX80 32,326 Reputation points

    In those PS prompts, run these commands to verify that something isn't modifying the path after PS starts. Use where to search for those programs.

    where.exe nvm 
    where.exe code 
    where.exe powershell 
    0 comments No comments

  3. Shivansh Srivastava 1 Reputation point

    Same for Me but I have found a temporary fix adding ".\" b4 commands seems to work .. will update if i found a parmanent fix..

    0 comments No comments