logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
Will H  
#1 Posted : Tuesday, June 6, 2017 7:41:41 PM(UTC)
Will H


Rank: Administration

Joined: 11/23/2016(UTC)
Posts: 1
United States

Thanks: 1 times
Was thanked: 1 time(s) in 1 post(s)
There are a few posts here about using the command pane to do interesting things, but I didn't see anything that covered this use scenario:

If you have a bunch of Windows access agents you'd like to silently pull a file down to and then install, you can use the command pane with a combination of commands to get this done. If you use the checkbox to multi-select a bunch of agents, you can run this command on many/all agents simultaneously.

This example downloads a file from Dropbox, puts it in C:\temp, and then runs a silent MSIEXEC install with logging to the C:\temp directory. The pathnames and URLs would be changed for whatever your purposes are. Pay close attention that only 3 of the 5 lines start with the # symbol.

If your remote endpoint has POWERSHELL 3, populate the command pane like this:

Quote:
#!ps
#maxlength=50000
#timeout=300000
Invoke-WebRequest -Uri https://dl.dropboxuserco...com/link/ClientSetup.msi -OutFile C:\temp\ClientSetup.msi
#!cmd
msiexec /i C:\temp\ClientSetup.msi /qn /l*v C:\temp\installfail.log


If your remote endpoint has POWERSHELL 2, populate the command pane like this:

Quote:
#!ps
#maxlength=50000
#timeout=300000
(new-object System.Net.WebClient).DownloadFile('https://dl.dropboxusercontent.com/link/ClientSetup.msi','C:\temp\ClientSetup.msi')
#!cmd
msiexec /i C:\temp\ClientSetup.msi /qn /l*v C:\temp\installfail.log



If you run into a 1603 error on install, it means the software is probably already installed, or that the SYSTEM account doesn't have Full Access to the install location.
thanks 1 user thanked Will H for this useful post.
Michael L on 6/6/2017(UTC)
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.