【发布时间】:2013-08-16 08:34:24
【问题描述】:
如何编写一个在 Linux 上运行的 Perl 脚本,并且能够通过 WinRM 在 Windows Server 上远程执行脚本(给定本地管理员凭据)?
我正在寻找使用与 Ruby library for Windows Remote Management 或 Python library for Windows Remote Management 等效的 Perl 库的示例代码。
【问题讨论】:
如何编写一个在 Linux 上运行的 Perl 脚本,并且能够通过 WinRM 在 Windows Server 上远程执行脚本(给定本地管理员凭据)?
我正在寻找使用与 Ruby library for Windows Remote Management 或 Python library for Windows Remote Management 等效的 Perl 库的示例代码。
【问题讨论】:
你试过openwsman吗?它有 perl 绑定和supports WinRM。不过自己没用过。
【讨论】:
https://github.com/HugoMaza/WinRM-WinRSExec
它是 Perl 模块,使您能够通过 WinRM 在 Windows Server 上远程执行脚本。
【讨论】: