Using Powershell's Invoke-command to install .exe on remote computer

Posted by Bernie on Server Fault See other posts from Server Fault or by Bernie
Published on 2011-12-28T16:29:00Z Indexed on 2012/09/15 9:40 UTC
Read the original article Hit count: 262

Filed under:

I have an .exe I would like to install on a large farm of Windows Server 2008 computers. I am attempting to use Powershell remoting. I have this command which works locally:

invoke-command {& "N:\Temp\fortify_installer\HP-Fortify-3.20-Analyzers_and_Apps-Windows-x86.exe /s /f1N:\Temp\fortify_installer\response.iss"}

But when I add the -computername flag it seems to go off to nowhere, and the installer is never run on the remote machine.

I can launch notepad.exe via the same command and it runs. Does it have something to do with it being an installer, or something else? I realize many versions of this question have been asked and I have read them, but I am still confused as to why this doesn't work.

© Server Fault or respective owner

Related posts about powershell