:: BATCH SCRIPT START
@ECHO OFF
WMIC OS GET ServicePackMajorVersion |FIND "2" >NUL
IF NOT ERRORLEVEL 1 (
ECHO Service Pack 2 Installed
)ELSE ECHO Service Pack 2 NOT Installed)
:: BATCH SCRIPT END
Main Topics
Browse All TopicsI would like to use the startup script to install the DST patch (using the silent install switches)
However, I can't install without SP2 being installed, so I need to know how to get the batch file to determine if SP2 is installed, and if it is, install the DST patch, and if not to copy the computername to a text file on the server, so these systems can be upgraded before installing the DST patch.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
There are many ways of deploying Service Pack, like this can be done silently through (1) Group Policy, using (2) Windows Update Service, you can also (3) Slipstream SP2 with OS, and you also perform (4) Unattended installation of SP2.
For more Info:
Windows XP Service Pack 2 Deployment Information
http://technet.microsoft.c
http://technet.microsoft.c
Hope this helps!
Farhan
Business Accounts
Answer for Membership
by: A2the6thPosted on 2007-10-26 at 12:17:37ID: 20158282
you can run systeminfo from a command prompt and that will tell you about the OS and patch level and it can be scripted easy enough.
Let me know if you need details