----^--->
/\

//\\
//The\
/Sy
stem\
////
Guard
\

In the mount of the LORD it shall be seen. Genesis 22:14

System_Info

Booming Or Fuming? | MasterCatalog | ntlib (FREE) | NTCmdLib | MtCmds | Scripts | Almost Free | TheGuardBook | Help

 

Library
Resources

Constants | Functions | GlobalSwitches | GuardNotes | Command Shorthand | MountCommands | Procedures
Procedures   File_Number_Lines | Parse_Command_Line_Switches | System_Info

:SI (System_Info)

Description

Retrieve Advanced System Information such as Service Pack, HotFixes, Installed Applications and Internet Explorer version.

Syntax

At the Command Prompt

C:\>NTCmdLib   :[SI|System_Info]

In a Script

CALL NTCmdLib   :[SI|System_Info]
%.Call%   :[SI|System_Info]

Parameters and Switches

None    

Errorlevels, Output Variables and Custom Mount/\Commands

Name

 

Value

  Description/Contents

_SI

 

Status Message

  Variable containing a message indicating the outcome of the job.

#ie

 

6.0.2800.1106

  Variable containing the full version of Internet Explorer (or 0.0.0.0 if not installed)

#ServicePack

 

1

  Variable containing the integer value of the current Service Pack (or 0 if none installed)

#HotFix

 

KB282010,KB810217,
Q815485,[...,]

  Variable containing a comma-delimited list of installed Operating System HotFixes

.ListApps

 

session-specific script code

  Display installed applications.

.eListApps

 

session-specific script code

  Display installed applications. (escapified!)

Examples, Notes and Instructions

Notes

  • Output is displayed to STDOUT, errors to STDERR
  • To suppress console display, use the library GlobalSwitch /Quiet (or simply /q)

    NTCmdLib /Q TaskID /TaskSwitches Parameters

    CALL NTCmdLib /Q TaskID /TaskSwitches Parameters

    %.Call% /Q TaskID /TaskSwitches Parameters

  • Since the Command Library is automatically initialized before executing any $FUNCTION or :Procedure, you can "Initialize with Advanced System Information" in one step by placing
       "CALL NTCmdLib /Quiet :System_Info"
    in your script.

Example 1 - Interactively, at the command prompt

The sample data is an NT 4 Server SP6a+ with Office 2000 SR-1 and Internet Explorer 6 SP1.  The syntax would be identical for any Windows NT 4, 2000, XP or Server 2003 system (see the Compatibility Page)

NT
2K
XP
K3
C:\GuardPost>ntcmdlib :si

  ^   =========================================================================
 /!\    NTCmdLib.cmd 2004.03.14 NT/2K/XP/K3 ("Almost Freeware" at $9 or less!)
/LIB\ =========================================================================

_SI=System Info Retrieved
#ServicePack=6
#HotFix=KB823182,KB823803,KB824105,KB824141,KB824146,KB825119,KB828028,KB828035,
KB830352,Q147222,Q246009,Q299444,Q304158,Q305929,Q312895,Q318138,Q320206,Q323172
,Q326830,Q328310,Q329115,Q810833,Q811493,Q815021,Q817606,Q823492,Q823559,Q823803
,Q823980
#ie=6.0.2800.1106

C:\GuardPost>FOR %A IN (%#HotFix%) DO @ECHO:%A
KB823182
KB823803
KB824105
KB824141
KB824146
KB825119
KB828028
KB828035
KB830352
Q147222
Q246009
Q299444
Q304158
Q305929
Q312895
Q318138
Q320206
Q323172
Q326830
Q328310
Q329115
Q810833
Q811493
Q815021
Q817606
Q823492
Q823559
Q823803
Q823980

C:\GuardPost>%.ListApps%
Adobe Acrobat 5.0
Microsoft DirectDrawEx
DirectShow
Internet Explorer Exception pack
Internet Explorer Help
Microsoft Internet Explorer 6 SP1 and Internet Tools
Internet Explorer ReadMe
Internet Explorer Q832894
Internet Explorer Browsing Enhancements
Windows NT 4.0 Server Hotfix - KB823182
Windows NT 4.0 Server Hotfix - KB823803
Windows NT 4.0 Server Hotfix - KB824105
Windows NT 4.0 Server Hotfix - KB824141
Windows NT 4.0 Server Hotfix - KB824146
Windows NT 4.0 Server Hotfix - KB825119
Windows NT 4.0 Server Hotfix - KB828028
Windows NT 4.0 Server Hotfix - KB828035
Windows NT 4.0 Server Hotfix - KB830352
Offline Browsing Pack
Outlook Express Update Q330994
Microsoft Outlook Express 6
Windows NT 4.0 Hotfix [See Q299444 for more information]
Windows NT 4.0 Hotfix [See Q304158 for more information]
Windows NT 4.0 Hotfix [See Q305399 for more information]
Windows NT 4.0 Hotfix [See Q305929 for more information]
Windows NT 4.0 Hotfix [See Q312895 for more information]
Windows NT 4.0 Hotfix [See Q318138 for more information]
Hotfix for Q319733
Windows NT 4.0 Hotfix [See Q320206 for more information]
Windows NT 4.0 Hotfix [See Q323172 for more information]
Windows NT 4.0 Hotfix [See Q326830 for more information]
Windows NT 4.0 Hotfix [See Q328310 for more information]
Windows NT 4.0 Hotfix [See Q329115 for more information]
Windows NT 4.0 Hotfix [See Q810833 for more information]
Windows NT 4.0 Hotfix [See Q811493 for more information]
Windows NT 4.0 Hotfix [See Q815021 for more information]
Windows NT 4.0 Hotfix [See Q817606 for more information]
Windows NT 4.0 Hotfix [See Q823492 for more information]
Windows KB823559 Patch
Windows NT 4.0 Hotfix [See Q823803 for more information]
Windows NT 4.0 Hotfix [See Q823980 for more information]
Task Scheduler
Vector Graphics Rendering (VML)
Microsoft Office 2000 SR-1 Professional
Google Toolbar for IE

C:\GuardPost>%.ForAll% %A IN ('%.eListApps%') DO @ECHO:%A
Adobe Acrobat 5.0
Microsoft DirectDrawEx
DirectShow
Internet Explorer Exception pack
Internet Explorer Help
Microsoft Internet Explorer 6 SP1 and Internet Tools
Internet Explorer ReadMe
Internet Explorer Q832894
Internet Explorer Browsing Enhancements
Windows NT 4.0 Server Hotfix - KB823182
Windows NT 4.0 Server Hotfix - KB823803
Windows NT 4.0 Server Hotfix - KB824105
Windows NT 4.0 Server Hotfix - KB824141
Windows NT 4.0 Server Hotfix - KB824146
Windows NT 4.0 Server Hotfix - KB825119
Windows NT 4.0 Server Hotfix - KB828028
Windows NT 4.0 Server Hotfix - KB828035
Windows NT 4.0 Server Hotfix - KB830352
Offline Browsing Pack
Outlook Express Update Q330994
Microsoft Outlook Express 6
Windows NT 4.0 Hotfix [See Q299444 for more information]
Windows NT 4.0 Hotfix [See Q304158 for more information]
Windows NT 4.0 Hotfix [See Q305399 for more information]
Windows NT 4.0 Hotfix [See Q305929 for more information]
Windows NT 4.0 Hotfix [See Q312895 for more information]
Windows NT 4.0 Hotfix [See Q318138 for more information]
Hotfix for Q319733
Windows NT 4.0 Hotfix [See Q320206 for more information]
Windows NT 4.0 Hotfix [See Q323172 for more information]
Windows NT 4.0 Hotfix [See Q326830 for more information]
Windows NT 4.0 Hotfix [See Q328310 for more information]
Windows NT 4.0 Hotfix [See Q329115 for more information]
Windows NT 4.0 Hotfix [See Q810833 for more information]
Windows NT 4.0 Hotfix [See Q811493 for more information]
Windows NT 4.0 Hotfix [See Q815021 for more information]
Windows NT 4.0 Hotfix [See Q817606 for more information]
Windows NT 4.0 Hotfix [See Q823492 for more information]
Windows KB823559 Patch
Windows NT 4.0 Hotfix [See Q823803 for more information]
Windows NT 4.0 Hotfix [See Q823980 for more information]
Task Scheduler
Vector Graphics Rendering (VML)
Microsoft Office 2000 SR-1 Professional
Google Toolbar for IE

C:\GuardPost>

Related .Mount/\Commands, #Constants, $Functions, :Procedures

Resource

  Short Description
     

K

E

Y

Common Commands INTERNAL External /SWITCH Parameter Help text AddonTool
Mounted Commands .Mount/\Command CmdShorthand #Constant $FUNCTION :Procedure !GuardNote
Operating Systems NT/2K/XP/K3 NT Only NT/2K 2K Only 2K/XP XP Only XP/K3 K3 Only 2K/XP/K3

Procedures   File_Number_Lines | Parse_Command_Line_Switches | System_Info

/\
//\\
//
The\
/Sy
stem\
////
Guard
\
COME ON UP WITH US!
and
Congratulations On Your Decision
to
RISE ABOVE
THE REST!

^
/
!\
/LIB\

TheSystemGuard.com [Revised: 2007-03-29]
Copyright © 1995-2007, JWC
Computer Communications,
All Rights Reserved, Worldwide.
 Disclaimer       Privacy       About Us       More


Communication Is Business!

We Master It With Knowledge!

^
/
.\
/M^C\