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

Community Center | Not monitored
0 comments No comments
{count} votes

Your answer

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