Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/powershell/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Bash 调用VMScript-PowerCli-compatibility_Bash_Powershell_Powercli - Fatal编程技术网

Bash 调用VMScript-PowerCli-compatibility

Bash 调用VMScript-PowerCli-compatibility,bash,powershell,powercli,Bash,Powershell,Powercli,我想知道哪些来宾操作系统与invoke-VMScriptcmdlet兼容。我这样问的原因是:我计划在我的(自动化)测试环境中包括VMWare。到目前为止我读到的: Windows Server 2008 Windows Server 2012 软呢帽版本 我想知道,您使用过哪些windows和linux客户机,以及(如果适用)哪些语言是可调用的。例如,windows上的CMD,或者Linux上的Bash或Powershell。根据Powershell bat(CMD)和Bash都受支持,我手

我想知道哪些来宾操作系统与
invoke-VMScript
cmdlet兼容。我这样问的原因是:我计划在我的(自动化)测试环境中包括VMWare。到目前为止我读到的:

  • Windows Server 2008
  • Windows Server 2012
  • 软呢帽版本
我想知道,您使用过哪些windows和linux客户机,以及(如果适用)哪些语言是可调用的。例如,windows上的CMD,或者Linux上的Bash或Powershell。

根据Powershell bat(CMD)和Bash都受支持,我手头没有一台Linux机器需要确认,但根据这一点,只要安装了.Net和Powershell,并且机器已经重新启动,您就可以在Linux虚拟机上运行Powershell。除此之外,根据VM配置,您可以使用这些方法中的任何一种来创建和启动针对任何语言的脚本,方法是将它们构建为所交付脚本中的字符串,将它们写入临时文件,然后启动正确的解释器并调用新创建的文件。请注意,这里似乎有很多边缘案例,因此您可能希望查看需求