简体   繁体   English

vmware powercli安装软件

[英]vmware powercli install software

Is it possible that I can install .exe or .msi to my vm's using powercli. 是否可以使用powercli将.exe或.msi安装到我的VM中。

I want to use an installer then install it on the vm I specify. 我想使用安装程序,然后将其安装在指定的vm上。 I also want to do this quiet so im not seeing the installer running and no clicking next. 我也想安静地执行此操作,这样我就不会看到安装程序正在运行,也无法单击下一步。 I just want to say this is my path put it to this path on this vm and install it quiet. 我只想说这是我的路径,将其放在此vm上的此路径中,然后安静地安装。

If you really have to go through PowerCLI that (and so through vCenter), you can use the cmdlet Invoke-VMScript to "inject" a script or scriptblock in the guest OS. 如果确实需要通过PowerCLI(以及通过vCenter),则可以使用cmdlet Invoke-VMScript在客户机OS中“注入”脚本或脚本块。

For example : 例如 :

Invoke-VMScript -VM <YourVM> -ScriptText "msiexec /i path/to/your/package.msi /q" -GuestUser "YourUsername" -GuestPassword "YourPassword"

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM