Determining Windows version

  • Thread starter Thread starter Theo Welles
  • Start date Start date
T

Theo Welles

Hi All

I need to determine what version of Windows and what Service Pack is running
on remote clients using a batch script.

What .dll/.exe should I look for in order to do this?

Thank you!

Theo
 
Theo,

Right click on My Computer on the Desktop. Then select
Properties. The Windows version is listed under General.
 
Sorry Theo, My first post is probably not the answer to
your question. Apparently I didn't completely read your
message.
 
Theo said:
Hi All

I need to determine what version of Windows and what Service Pack is running
on remote clients using a batch script.

What .dll/.exe should I look for in order to do this?

Hi

Some tools that might help you:

1)
PSInfo.exe (local/remote) in the in the free PsTools suite found at
http://www.sysinternals.com/

2)
Console Computer Information Utility for 2000/XP
http://www.beyondlogic.org/solutions/compinfo/compinfo.htm

3)
AIDA32 is also an option:

http://www.aida32.hu/aida32.php

It can do automatic audit (e.g. using a logon script) via command-line
switches and save results to a file in various formats like HTML, CSV
or XML, or put it in a database (it has ADO/ODBC database support)

5.1 Command-line Mode
http://www.aida32.hu/proguide/en/proguide.htm#commandline_mode

AIDA32 network audit in practice
http://www.aida32.hu/aida-articles.php?n=002&lang=en

Using SQL databases for AIDA32.
http://www.aida32.hu/aida-articles.php?n=003&lang=en


4)
If you want to script it yourself, using a registry read is the easiest way

For a vbscript example (for local computer only), take a look at the functions
GetOsVersionNumber and GetSPNumber here:

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

For a batch script, you could use reg.exe instead (local and remote) to obtain
the registry values.


Using WMI/VBSript, you could also get this information from local and remote
computers.

Here is a link to a script
http://groups.google.com/[email protected]

that will give you this type of information/output:

OS version: Microsoft Windows 2000 Professional
SP version: Service Pack 2
OS language: English
Regional Settings for user is set to: Norway
 

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