Possible to use call to execute remote powershell script?

Advertisement

raglietti@csu.org
Joined:
Posts:
1

Possible to use call to execute remote powershell script?

Hello,
Does anyone know if you can use the call command to execute a powershell script a remote windows host?

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,378
Location:
Prague, Czechia

Re: Possible to use call to execute remote powershell script?

You can use the call command to execute any command on the remote server, that the SSH server allows you to execute, and that does not require a terminal emulation.

So yes, in general, it's possible to execute a PowerShell script.

Though note that WinSCP is not the right tool to automate command execution. The call command is just a handy feature, if you want to execute commands in addition to file transfers. If you want to automate commands only, you better use another tool, like PuTTY Plink.

Reply with quote

Advertisement

You can post new topics in this forum