Quantcast
Channel: PowerShell.org » All Posts
Viewing all articles
Browse latest Browse all 13067

Reply To: Script to install .EXE and configure on remote machines

$
0
0

Hello Pandiyan,

I would use Copy-Item to get the EXE onto the remote machine followed by Invoke-Command to run it with the silent parameters using Start-Process.

http://docs.saltstack.com/en/latest/topics/installation/windows.html#silent-installer-option

Copy-Item:
http://technet.microsoft.com/en-us/library/hh849793.aspx

Invoke-Command
http://technet.microsoft.com/en-us/library/hh849719.aspx

Start-Process:
http://technet.microsoft.com/en-us/library/hh849848.aspx

Example:

Invoke-Command -ComputerName ??? -ScriptBlock { Start-Process -Wait -FilePath C:\???\Salt-Minion-2014.1.7-AMD64-Setup.exe -ArgumentList '/S', '/master=mymaster', '/minion-name=myminion' }

Best,
Daniel


Viewing all articles
Browse latest Browse all 13067

Trending Articles