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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

script to install a list of MS patches on a network remotely

Status
Not open for further replies.

scriptnewbie

IS-IT--Management
Jul 22, 2005
16
US
Hi,
I am trying to write a script to install a list of Ms patches to several computers on the network remotely. I can do it remotely one by one by using psexec, but that is too time consuming. I would like to have the script that can install all the patches (that I put in a folder of my local machine)to several computers across the network. I like to install this list of patches quitely and norestart with one computer at a time or all the computers at one time. Any help would be much appreciated. Thanks
 
>I can do it remotely one by one by using psexec...
Fine, how does it look like?
Whatever it looks like, the same look will be in vbscript.
[tt]
set wshshell=createobject("wscript.shell")
'psexec [\\computer[,computer[,..] | @file ][-u user [-p psswd]][-n s][-s|-e][-i][-c [-f|-v]][-d][-w directory][-<priority>][-a n,n,...] cmd [arguments]
'loop through computers
'pseudocode
for each computer in computercollection
scmdline="psec ..." 'dependent on computer parameter
wshshell.run scmdline
next
set wshshell=nothing
[/tt]
 
Thanks for your response! I just completed the task manually. I will work on this for the next go around. Thanks again.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top