【发布时间】:2020-04-05 10:11:39
【问题描述】:
我尝试在本地机器上使用以下脚本运行位于remote azure vm 中的remote powershell script。
我可以通过powershell pssession 连接到azure remote vm,但Invoke-Command 没有返回任何内容。无法运行remote powershell script。
我也试过了
但是 -FilePath 试图查看本地机器 D: 驱动器而不是远程 azure vm D: 驱动器。
如何运行位于远程 azure vm D: 驱动器中的远程 azure vm powershell 脚本
【问题讨论】:
-
请不要将代码添加为图像。相反,编辑问题并将代码添加为格式化文本。
标签: powershell azure-virtual-machine