G
greg halpin
Any scripters out there?
I used to work at a company that used logon scripts and
SMS to automatically update workstations. The company I
work at now, has no automated update tools in place.
I would like to use logon scripts to install security
patches and software updates. I can right simple scripts
to map drives and set the time,etc. I have found great
script samples on TechNet's Script Center. But I need to
know how to have the logon script check the OS version
and then run another script depending on the version.
I know it can be done and is probably easy for someone
who does a lot of scripting but i don't know how. i've
looked at kix script program but don't have time to learn
it right now. i need to get updates out asap. Any advice
will be appreciated.
Greg
for example:
if the OS version is NT40 i want it to run \\server1
\patches\nt40\patch1.bat
if the os version is 2000 i want it to run \\server1
\patches\patches\2k\patch1.bat
if the os version is xp i want it to run \\server1
\patches\xp\patch1.bat
then of course, i want each patch.bat script to see if it
was installed already and not reinstall. here's what i
have for an example:
IF exist C:\WINDOWS\$NtUninstallKB823980$\rpcss.dll goto
patchend
\\server1\patches\823980\xp\WindowsXP-KB823980-x86-
ENU.exe -z -q
goto patchend
atchend
I used to work at a company that used logon scripts and
SMS to automatically update workstations. The company I
work at now, has no automated update tools in place.
I would like to use logon scripts to install security
patches and software updates. I can right simple scripts
to map drives and set the time,etc. I have found great
script samples on TechNet's Script Center. But I need to
know how to have the logon script check the OS version
and then run another script depending on the version.
I know it can be done and is probably easy for someone
who does a lot of scripting but i don't know how. i've
looked at kix script program but don't have time to learn
it right now. i need to get updates out asap. Any advice
will be appreciated.
Greg
for example:
if the OS version is NT40 i want it to run \\server1
\patches\nt40\patch1.bat
if the os version is 2000 i want it to run \\server1
\patches\patches\2k\patch1.bat
if the os version is xp i want it to run \\server1
\patches\xp\patch1.bat
then of course, i want each patch.bat script to see if it
was installed already and not reinstall. here's what i
have for an example:
IF exist C:\WINDOWS\$NtUninstallKB823980$\rpcss.dll goto
patchend
\\server1\patches\823980\xp\WindowsXP-KB823980-x86-
ENU.exe -z -q
goto patchend
atchend