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

How to determine Service Pack Level

Status
Not open for further replies.

mrtoledo

Technical User
Aug 22, 2002
155
US
I am attempting to write a batch file to determine what service pack of Windows 2K machines are on. Is there any particular file(s) I can check for, or is there any command line utility that will return this infomation. I can do this mannualy through AD Users and Comptuers, but that is too much work. Any ideas is apprecaited...
 
not sure if you can search via the registry, but you can check the current service pack by going to:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\CSDVersion
value will be Service Pack #, possibly blank if no service pack is present.
what we do here is add a "flag" file when service packs or other updates are installed, this way a user logs on, the batch file sees if there are any updates for their particular machine, group, or that user, then sees if they have that flag file in a set location. If not, it pushes out the update, if they do have the flag file, it ignores the update.
 
You cant also just go to the properties of your my computer icon, and a service pack # will be stated there.

A+,Network+,MCP
 
running winver will display 'about windows' popup with the info.

Psinfo (part of pstools, freeware from will display it among other details (can pipe it to a text file from command prompt).
 
Thanks, I will try the software from sysinternals.com. I need to do this from a batch file so I can collect the data remotley, visting several hundered machines is not practical.

Running winver will not give me a service pack level.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top