如何在Windows系统中从unix系统调用Powershell脚本

时间:2012-08-21 05:31:56

标签: powershell

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

2 个答案:

答案 0 :(得分:1)

您可以尝试winexe

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

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

答案 1 :(得分:0)