0

如何在 Windows 系统中从 unix 系统调用 Powershell 脚本。我有一个 Windows 系统,必须在其中运行 Powershell 脚本。此 Powershell 脚本必须仅在从另一个系统(即 unix 系统)调用/调用时运行。是否可以从 unix 系统调用类似的 powershell 脚本。请帮帮我。

4

2 回答 2

1

你可以试试winexe

winexe -U 'user%pass' //hostname 'powershell.exe my_power_script'

这假定您的 powershell 脚本位于远程 Windows 系统上。

于 2014-01-13T17:06:18.577 回答
0

Powershell over ssh 是一种方法 - http://www.powershellinside.com/powershell/ssh/download.aspx

于 2012-08-21T10:10:38.687 回答