Hello guys! How can I use msiexec switches when installing sortware with win32_product install method? E.g. I wrote this code:
$distrib = \\Server\Share\Product.msi
$pc= 'computer'
$switch='/qn'
$app=[wmiclass]"\\$pc\root\cimv2:win32_Product"
$app.install($distrib,$switch,$TRUE)
But this doesn't work, what is the correct way? Thanks in advance.