I am trying to install Microsoft Office 2010, I have created a MSP and config.xml file so I can do this from Powershell, using the following command:
Start-Process "C:\temp\Office2010\x86\setup.exe" -ArgumentList "/config `"Config.xml`" /adminfile `"custom.MSP`"" -Wait -NoNewWindow
And this works perfectly. After waiting for the setup.exe to finish Office is installed.
But running this same command from a remote machine using the following command:
Invoke-Command -computer computer -Credential user -ScriptBlock { Start-Process "C:\temp\Office2010\x86\setup.exe" -ArgumentList "/config `"Config.xml`" /adminfile `"custom.MSP`"" -Wait -NoNewWindow}
I know command is being executed because the installer is creating a log file but the log just stops abruptly https://gist.github.com/smudgerdan/62a5e44300a9590d6174
Is there something which means that winrm doesn't wait around for setup.exe to finish? How can I install Office 2010 via winrm?