Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Automating MS update installs

11 views
Skip to first unread message

KevinMS

unread,
Oct 4, 2002, 1:05:57 PM10/4/02
to
I need to distribute MS patches to a small Win2K network
(server & clients) and I'd like to do it via scripts at
user logon. I'm currently using VBScripts, and being new
to scripting I'm unfamilar with how to run an EXE from a
VBScript. How is this done? I've looked in several books
and on the Net without success.
Another option would be to use a batch file to start the
installation, but then I'd need to call the batch file
from my script. This is also something I'm not familar
with.

Any suggestions on how to do this or where I can find
information on it would be greatly apprectiated!!

Ned Flanders

unread,
Oct 4, 2002, 1:34:23 PM10/4/02
to
What you're looking for is the RUN method. If you know that the target
systems all have WSH 5.6 you can also use the EXEC method.
Documentation here:
http://msdn.microsoft.com/downloads/default.asp?url=/downloads/topic.asp?url
=/msdn-files/028/001/175/topic.xml
(watch for URL wrap, of course!)

"KevinMS" <ksm...@braxton-reed.com> wrote in message
news:1011901c26bc8$4e697300$37ef2ecf@TKMSFTNGXA13...

Yassine

unread,
Oct 4, 2002, 5:14:01 PM10/4/02
to
Another way would be to install SUS and send the updates via a server.

"Ned Flanders" <ned...@hotmail.com> wrote in message
news:#Tdxew8aCHA.1744@tkmsftngp11...

Torgeir Bakken (MVP)

unread,
Oct 4, 2002, 8:38:36 PM10/4/02
to
KevinMS wrote:

Hi

e.g.

Set oShell = CreateObject("WScript.Shell")

sCmd = "C:\q323759.exe /q:a /r:n"
oShell.Run sCmd, 1, True


Note that the user running the logon script needs to be a local administrator.


If you want to do a remote installation that is unattended (no user input) and
single file install file based, you can use PsExec.exe in the free PsTools suite
from Sysinternals for this (will work on Win NT 4.0, Win2k and WinXP).

http://www.sysinternals.com/ntw2k/freeware/pstools.shtml

To install e.g. q323759.exe remotely, do like this:

psexec.exe \\some_computer -c C:\q323759.exe /q:a /r:n

The file "behind" -c must exist on the computer running PsExec.
PsExec will copy the specified program to the remote system for execution and
run it with the additional switches. After the install, the file q323759.exe
will be deleted from the remote computer.

If not domain, username and password can be supplied:
psexec.exe \\some_computer -u user -p pwd -c C:\q323759.exe /q:a /r:n


See here for a complete VBScript example that installs SW on a list of computers

in a text file using PsExec:

From: Torgeir Bakken (Torgeir.B...@hydro.com)
Subject: Re: Auto-Installing WMI
Newsgroups: microsoft.public.win32.programmer.wmi
Date: 2002-08-12 20:04:56 PST
http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&selm=3D58758B.3139B90C%40hydro.com

--
torgeir
Microsoft MVP Scripting and WMI
Porsgrunn Norway


Torgeir Bakken (MVP)

unread,
Oct 4, 2002, 8:34:04 PM10/4/02
to
Yassine wrote:

> Another way would be to install SUS and send the updates via a server.

And if anyone wonders what SUS is:


The free Microsoft Software Services (SUS), Win2k and WinXP only:
http://www.microsoft.com/windows2000/windowsupdate/sus/default.asp


With SUS, there are a couple of downsides though...

1)
If the users local account on the client computer is a non-admin (a.k.a. not
members of the Administrators group), you cannot prevent SUS rebooting the
client PC when the patches have been installed. After a reboot notice and a 5
minutes pause, the computer just reboots. As a non-admin, there is no way to
supress it.

2)
The client can only check for updates once a day, if the client misses the
update check "time window" (a.k.a. it was offline/powered off), it will
"reschedule" the check to next day.

3)
The SUS service needs to run on a Windows 2000 Server (non DC) with IIS
installed.


There is a separate newsgroup for SUS as well:
microsoft.public.softwareupdatesvcs

Jean

unread,
Oct 6, 2002, 3:32:02 AM10/6/02
to
Hi,

Microsoft Baseline Security Analyzer (was Microsoft Personal Security Advisor)
http://www.microsoft.com/technet/treeview/default.asp?url=/technet/security/tools/tools/mbsahome.asp

is a good tool too.

Regards,

Jean - JMST
Belgium

jm...@ibelgique.com (Reply to the group please)


"Torgeir Bakken (MVP)" <Torgeir.B...@hydro.com> a écrit dans le message de news: 3D9E348C...@hydro.com...

KevinMS

unread,
Oct 7, 2002, 10:09:47 AM10/7/02
to
Jean,
Thanks for the suggestion, I wasn't aware that was an
option. I'll check it out.

Kevin

>.
>

0 new messages