Determine service pack level from a batch file.

  • Thread starter Thread starter David
  • Start date Start date
D

David

Hi everyone,
Does anyone here have a way to determine the installed
service pack level of windows 2000 from within a batch
file? I would really appreciate any help.
Thanks in advance
David.
 
Hi everyone,
Does anyone here have a way to determine the installed
service pack level of windows 2000 from within a batch
file? I would really appreciate any help.
Thanks in advance
David.


Why do you need a batch file for that. Right click My Computer and go
for properties and there in the heading is the answer.

B. Pedersen Longitude 31,48.21 Latitude 115,47.40
 
David said:
Hi everyone,
Does anyone here have a way to determine the installed
service pack level of windows 2000 from within a batch
file? I would really appreciate any help.

Hi

Several ways:

A)
Use reg.exe (you can run reg.exe from e.g. a network drive), take a look here
for an example on how to use it in a batch file to test for SP level:

http://groups.google.com/[email protected]

Reg.exe is in the Win2k Support Tools found on the Win2k CD,
\Support\Tools\Suptools.msi, or for the latest version of
Support Tools (should work on non-SP4 computers as well):
http://www.microsoft.com/windows2000/downloads/servicepacks/sp4/supporttools.asp

In WinXP, Reg.exe comes default installed with the OS.


B)
osver.exe in Windows Admin Script Tools

http://home.comcast.net/~stewartb/wast.html

osver.exe -s

This returns the service pack level as an ERRORLEVEL for use in scripts if
needed.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top