我在创建无人参与的Azure cmdlet安装时遇到问题(它是一个msi文件,windowsazure-powershell.0.8.3.msi,当前版本)。
我如何知道安装所需的参数以及我应该如何编写它?
这样吗?
$msifile= '<path>\windowsazure-powershell.0.8.3.msi'
$arguments= ' /qn /l*v .\options.txt'
Start-Process `
-file $msifile `
-arg $arguments `
-passthru | wait-process
那我该怎么做呢?
提前致谢。
答案 0 :(得分:1)
不要担心所有命令行开关。您可以使用WMI和PowerShell
执行此操作$product= [WMICLASS]"\\.\ROOT\CIMV2:win32_Product"
$product.Install("c:\temp\windowsazure-powershell.0.8.3.msi")