PowerShell 7 isn't handling what PS that comes with Windows 10 can do.

Mike Lieberman 1 Reputation point
2022-03-02T08:41:56.503+00:00

I have a shortcut to invoke PowerShell to run SSH to connect to another computer on my network.

This works

C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe ssh fubar@[ip address]

None of these work:

"C:\Program Files\PowerShell\7\pwsh.exe" ssh fubar@[ip address]

"C:\Program Files\PowerShell\7\pwsh.exe" -ssh fubar@[ip address]

"C:\Program Files\PowerShell\7\pwsh.exe" "ssh fubar@[ip address]"

"C:\Program Files\PowerShell\7\pwsh.exe" "-ssh fubar@[ip address]"

What is the correct way to invoke version 7?

Reply

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
37,796 questions
0 comments No comments
{count} votes