Command Information
Version 2.4
CmdInfo is a command line utility that gives core
information about your Windows NT installation.
There is a possible conflict when using
Novell's Client32. The Client32 installs a CMDINFO.EXE into the system32
folder to obtain IPX compatibility information. This might be a possible
conflict with this utility. If you have this problem rename the SavillTech
CmdInfo.exe to another name, it will not effect it.
Version 2.4 uses functionality from the
pdh.dll which is not part of normal NT 4.0 so you will need to copy the
pdh.dll included in the downloadable ZIP folder to the %systemroot%\system32
folder or just leave in the same folder as cmdinfo.exe.
Version 2.4 also requires the ieinfo.dat to
be in the same folder as cmdinfo.exe to be able to translate the IE versions
to normal tesxt.
Recent changes:
- Version 2.4 includes full Windows XP support,
activation status, system uptime, internet explorer version and hotfix listings
- Version 2.3 fixes some bugs with %errorlevel%
- Version 2.2 includes full Windows 2000
support.
- Version 2 adds support for remote machine information using the format:
cmdinfo \\titanic-dc
Contacting Host \\titanic-dc for information
Contacting Host \\titanic for information
Version type Time Limited Version (180 days)
Installation date 19 July 2001, 13:21:38
Expiry date 15 January 2002, 11:21:38
OS type Microsoft Windows Whistler
Product Type Windows 2002 Advanced Server (DC) (TS)
Plus version Not Available
IE Version 6.0.3505.0000
Service Pack Not available
Processor Type Uniprocessor Free
Activation Status Activated
Build number 3505
Source Path E:\
System root C:\WINDOWS
Owning Org SavillTech Ltd
Owner name John Savill
Uptime 16 days, 7 hours, 2 minutes and 59 seconds
Hotfixes:
Q147222 No Description
Q283213 Microsoft ISA Server 2000 Hotfix [See Q283213 for more information]
Q293826 Windows 2000 Hotfix (Pre-SP3) [See Q293826 for more information]
Q300972 Windows 2000 Hotfix (Pre-SP3) [See Q300972 for more information]
This is the only application that can tell you if your installation is a full,
time limited evaluation version or Not For Resale. It can also tell your remote
activation status of XP machines.
In its most basic form it can be run from the
command line with no switches to give build, type, service pack level etc as
seen below:
D:\>cmdinfo
Version type Time Limited Version (180 days)
Installation date 08 August 2001, 10:28:01
Expiry date 04 February 2002, 08:28:01
OS type Microsoft Windows XP
Product Type Windows XP Professional
Plus version Not Available
IE Version Internet Explorer 6 (XP) (6.0.2535.0000)
Service Pack Not available
Processor Type Uniprocessor Free
Activation Status Activated
Build number 2535
Source Path I:\
System root C:\WINDOWS
Owning Org SavillTech Ltd
Owner name John Savill
Uptime 2 days, 4 hours, 45 minutes and 29 seconds
Hotfixes:
Q147222 No Description
Its power comes when used with switches which
causes the program to pass back information via the ErrorLevel and allows
switch returns to perform different actions depending on the results.
Switch |
Description
and resultant ErrorLevel |
[Computer
name] |
IP address
or DNS name. HAS to be the first parameter and only supported in version
2.0. |
/b |
Actually returns the build number, e.g. 2031 |
/sp |
Returns the Service pack number, e.g. 3 for SP3, 4 for SP4 etc
0 for unknown |
/v |
Version
1=3.1
2=3.5
3=3.51
4=4.0
5=Windows 2000
6=Windows XP
0=Unknown |
/r |
Role
1=Workstation
2=Server
3=Domain Controller |
/t |
Type of installation
1=Windows NT 4.0 Workstation
2=Windows NT 4.0 Server
3=Windows NT 4.0 Server Domain Controller
4=Windows NT 4.0 Terminal Server Edition
5=Windows NT 4.0 Enterprise Edition
6=Windows 2000 Professional
7=Windows 2000 Server
8=Windows 2000 Advanced Server
9=Windows 2000 Datacenter
10=Windows XP Home Edition
11=Windows XP Professional
12=Windows 2002 Server
13=Windows 2002 Advanced Server
14=Windows 2002 Datacenter
15=Windows NT 3.51 Workstation
16=Windows NT 3.51 Server
17=Windows NT 3.51 Server Domain Controller
(DC) at end means its a domain controller
(TS) at the end means the Terminal Services component is installed |
/ed |
Length of limited version in days, e.g. 120 |
/tr |
Installation type, full, NFR or trial
1=Full Version
2=Not For Resale
3=Time Limited
0=Not known |
/ac |
Activated
status
-1=Activated
Any positive number means not activated and is the number of days left to
activate (even 0) |
/ht:QXXXXXX |
Allows a
check if a certain hotfix is installed
0=Not installed
1=Installed |
/dc |
If a
domain controller
0=No
1=Yes |
/ts |
If has
terminal services
0=No
1=Yes |
/up |
Uptime in
seconds (this will not work against 3.51 or below). For local NT 4.0
machines pdh.dll must be installed |
/ie |
Internet
Explorer major version (e.g. 5.5 would be just 5) |
/? |
Basic help (not much though :-) ) |
An example of using the Service Pack version
is as follows:
@ECHO OFF
CMDINFO.EXE /sp
IF ERRORLEVEL 5 GOTO SP5
IF ERRORLEVEL 4 GOTO SP4
IF ERRORLEVEL 3 GOTO SP3
IF ERRORLEVEL 2 GOTO SP2
IF ERRORLEVEL 1 GOTO SP1
IF ERRORLEVEL 0 GOTO SP0
:SP5
ECHO Service Pack 5 is installed on this NT computer.
ECHO No further upgrades are necessary.
GOTO END
:SP4
ECHO Service Pack 4 is installed on this NT computer.
ECHO Press any key to install Service Pack 5...
PAUSE > NUL
rem Let's assume drive X: is mapped to a sharepoint...
rem X:\SP5\UPDATE\UPDATE.EXE -u -f -o
GOTO END
rem (etc. ...)
:END
EXIT
Contact Information
If you
wish to discuss licensing windows information in a product and/or require an
custom changes (logo etc.) please mail sales@savilltech.com.
|