PC Review


Reply
Thread Tools Rate Thread

Determine service pack level from a batch file.

 
 
David
Guest
Posts: n/a
 
      5th Jan 2004
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.
 
Reply With Quote
 
 
 
 
nesredep egrob
Guest
Posts: n/a
 
      5th Jan 2004
On Sun, 4 Jan 2004 16:01:34 -0800, "David" <(E-Mail Removed)>
wrote:

>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
 
Reply With Quote
 
Pegasus \(MVP\)
Guest
Posts: n/a
 
      5th Jan 2004
Download psinfo.exe from www.sysinternals.com (free).


"David" <(E-Mail Removed)> wrote in message
news:059001c3d31f$15146190$(E-Mail Removed)...
> 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.



 
Reply With Quote
 
Torgeir Bakken (MVP)
Guest
Posts: n/a
 
      5th Jan 2004
David wrote:

> 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/groups?selm...l4ch%404ax.com

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...pporttools.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.


--
torgeir
Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of the 1328 page
Scripting Guide: http://www.microsoft.com/technet/scriptcenter


 
Reply With Quote
 
Guest
Posts: n/a
 
      6th Jan 2004
Thanks everybody. The psinfo solution is great. I shall
try that.
>-----Original Message-----
>On Sun, 4 Jan 2004 16:01:34 -0800, "David"

<(E-Mail Removed)>
>wrote:
>
>>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
>.
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Any way to determine Service Pack level on an Excel install Doug_F Microsoft Excel Programming 15 8th Mar 2010 10:24 PM
Service Pack Level MDD Microsoft Word Document Management 1 23rd May 2008 02:33 PM
How to determine the Service Pack level? Andrew Cushen Microsoft Outlook VBA Programming 4 12th Nov 2004 12:33 AM
How to determine the Office XP service pack level? CR Microsoft C# .NET 1 28th Oct 2004 09:19 PM
Runing hotfix and Service pack in a batch file ??? =?Utf-8?B?c2VyZ2UgY2FsZGVyYXJh?= Microsoft Windows 2000 Setup 1 29th Sep 2004 05:23 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:46 AM.