ITPro Guy
ITPro Guy

Reputation: 187

Unattended installation of Azure SDK via PowerShell

I'm having problems to create an unattended installation of cmdlets of Azure (It's a msi file, windowsazure-powershell.0.8.3.msi, current version).

How can I know the parameters that installation needs and how I should write it?

In this way?

$msifile= '<path>\windowsazure-powershell.0.8.3.msi' 
$arguments= ' /qn /l*v .\options.txt' 
Start-Process `
 -file  $msifile `
 -arg $arguments `
 -passthru | wait-process

So how can I perform that?

Thanks in advance.

Upvotes: 1

Views: 659

Answers (1)

ravikanth
ravikanth

Reputation: 25810

Don't worry about all the commandline switches. You can do this using WMI and PowerShell

$product= [WMICLASS]"\\.\ROOT\CIMV2:win32_Product"
$product.Install("c:\temp\windowsazure-powershell.0.8.3.msi")

Upvotes: 1

Related Questions