a problem about runing powershell

清 杨 0 Reputation points
2023-03-20T18:37:19.94+00:00

图片

图片

图片

this is system environment

图片

When I bring up the running window and enter powershell, the default version of ps is still 5.x. I want to know how to make the default version of powershell 7.x open. (I have installed the 7.x version of ps and added it to the system environment variables)

Windows for business | Windows Server | User experience | PowerShell
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Rich Matheisen 48,026 Reputation points
    2023-03-20T19:34:29.84+00:00

    Don't enter "PowerShell". The name of the executable for PowerShell 7 is pwsh.

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.