Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using PSEXEC.exe to install patches remotely

Status
Not open for further replies.

hgate73

IS-IT--Management
Feb 22, 2008
80
US
I'm using PSEXEC (sysinternals) to script the installation of a bunch of routine patches on our systems.

I have a FOR loop read the list of computer names and execute the command one-by-one on the computers.

I want to copy a patch to the remote computer, run it, and disconnect. The only part I'm stuck on is getting the file copied to the remote system for execution.

Currently it looks like this:
Code:
psexec -d @%NAMES_FILE% -c -f ShellRunas.exe /reg /quiet

For some reason, even though PSEXEC says "ShellRunas.exe started on BRNGWKNTFTFLEET with process ID 3512" nothing changes (the EXE restores the "run as another user" option in Vista).

I log in, and there's still no "run as another user" option. Do I need quotes around the ShellRunas.reg /reg /quiet portion? Is it ignoring the flags after the exe?

I was previously posting under "GeneralDzur" but hgate73 is my new username.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top