I have to execute myexample.msi
on the remote machine.
Below logic I have tried but the msi is executed and didn't show any error:
Invoke-Command -ComputerName computername -ScriptBlock {
msiexec /i "myexample.msi" /q UserName="my username" password="my password" /log C:\karthik.txt
}
So any one please suggest.