【问题标题】:Python wrapper over Powershell remotingPowershell 远程处理的 Python 包装器
【发布时间】:2012-06-18 10:44:20
【问题描述】:

windows powershell 远程处理是否有一些 python 包装器?我需要在远程 Windows 主机上执行移动、复制、压缩等命令。

快速谷歌搜索导致此链接https://gist.github.com/2850866 (只是一个小样本)。我正在寻找更完整的库/等。

【问题讨论】:

  • IronPython 有一个使用 PowerShell 的sample。不确定这是否符合您的 python 要求。

标签: python powershell powershell-remoting


【解决方案1】:

假设你不介意在你的 windows 机器上使用 ssh,你应该使用Fabric

这是Example Fabric usage with powershell

【讨论】:

  • Fabric 是一个 Python(2.5 或更高版本)库和命令行工具用于简化 SSH 的使用,用于应用程序部署或系统管理任务但我需要 powershell 远程包装器
猜你喜欢
  • 2021-07-05
  • 1970-01-01
  • 2017-09-21
  • 1970-01-01
  • 1970-01-01
  • 2023-03-19
  • 1970-01-01
  • 1970-01-01
  • 2023-03-30
相关资源
最近更新 更多