SystemInfo
The SystemInfo command will output a significant amount of information on the system. This can be very valuable when troubleshooting a system because it gives you a lot of information at a glance. It can quickly tell you things like these and more:
- Hostname
- Operating system name, edition, and version
- when it was last booted
- Details on the hardware such as BIOS version, number, and type of processors and how much RAM is installed
- Names of hotfixes that have been installed
Listing 4 shows the output of this command on my system.
Listing 4: Output of the SystemInfo command
Host Name: DRG OS Name: Microsoft Windows 7 Ultimate OS Version: 6.1.7600 N/A Build 7600 OS Manufacturer: Microsoft Corporation OS Configuration: Standalone Workstation OS Build Type: Multiprocessor Free Registered Owner: Mike Ribson Registered Organization: SY0-201.com Product ID: 00426-065-0543977-86656 Original Install Date: 7/10/2009, 4:42:31 AM System Boot Time: 8/22/2009, 12:46:35 PM System Manufacturer: Hewlett-Packard System Model: HP Pavilion dv7 Notebook PC System Type: x64-based PC Processor(s): 1 Processor(s) Installed. [01]: Intel64 Family 6 Model 23 Stepping 6 GenuineIntel ~2401 Mhz BIOS Version: Hewlett-Packard F.26, 2/6/2009 Windows Directory: C:\Windows System Directory: C:\Windows\system32 Boot Device: \Device\HarddiskVolume1 System Locale: en-us;English (United States) Input Locale: en-us;English (United States) Time Zone: (UTC-05:00) Eastern Time (US & Canada) Total Physical Memory: 6,111 MB Available Physical Memory: 969 MB Virtual Memory: Max Size: 13,799 MB Virtual Memory: Available: 8,529 MB Virtual Memory: In Use: 5,270 MB Page File Location(s): C:\pagefile.sys Domain: WORKGROUP Logon Server: \\DRG Hotfix(s): 3 Hotfix(s) Installed. [01]: KB958559 [02]: KB972636 [03]: KB973874 Network Card(s): 1 NIC(s) Installed. [01]: Intel(R) PRO/100 VE Network Connection Connection Name: Local Area Connection DHCP Enabled: Yes DHCP Server: 192.168.1.1 IP address(es) [01]: 192.168.1.103 [02]: fe80::bd37:44ef:a2c5:47d2
As with any command, you can send the output of this command to a text file using the redirection symbol, like this:
Systeminfo > SystemInfo.txt
In this tutorial:
- Working with the Command Prompt
- Starting and Ending a Command Prompt Session
- Easy ways to invoke administrator Command Prompt sessions
- Starting Command Prompt at a Particular Folder
- Strings with Spaces Need Quotes
- Cmd.exe vs. Command.com
- Commands Are Not Case Sensitive
- Starting Command Prompt and Running a Command
- Cmd.exe and Other Command Prompts
- Using AutoRun to Execute Commands When Command Prompt Starts
- Using Cmds Command-Line Syntax
- Using Commands
- Type /? for help
- Starting Programs
- Open Windows Explorer at the current Command Prompt folder
- Using File-Name and Folder-Name Completion
- Use a different completion character
- Using Wildcards
- Editing the Command Line
- Using Command Symbols
- The Redirection Symbols
- The Pipe Symbol
- The Command Combination Symbols
- Pausing or Canceling Commands
- Simplifying Command Entry with Doskey Macros
- DOSKEY Saves Typing
- System Variables Identify the Environment
- Viewing Environment Variables
- Modifying Environment Variables
- Predefined Environment Variables
- Customizing Command Prompt Windows
- Setting the Window Size and Position
- Setting the Window Size and Position Visually
- Selecting a Font
- Setting Colors
- Setting Other Options
- Copy and paste in the command prompt window
- Navigating from the command prompt
- Printing a list of filenames
- Commands Use Paths
- Identifying Executables
- Modifying the Path to Executables
- Modifying the Path with the GUI
- Changing the Current Path with CD
- Changing the Current Path with Windows Explorer
- Capturing the Output
- A Sampling of Commands
- Dir
- Copy
- XCopy
- SET
- NET USE
- SystemInfo
- DriverQuery
- Echo
- Advanced Shell Commands
- Creating a Batch File
- Scheduling a Batch File
- Creating Scheduled Tasks with a Script
- Using Windows PowerShell and the PowerShell ISE
- Windows PowerShell ISE
- PowerShell Commands
- Verbs and Nouns
- Sending Output to a Text File
- PowerShell Syntax
- Variables Created with a $ Symbol
- Comparison Operators
- Parentheses, Brackets, and Braces
- Running PowerShell Scripts
- PowerShell Execution Policy
- Changing the Execution Policy
- Looping
- Collections
- Creating a PowerShell Script
- Documenting Scripts
- Using PowerShell Commands
- Getting Help on PowerShell
- Using WMI_Cmdlets
- Getting Details on an Object
- Querying Information on Specific Objects
- Terminate Applications with Win32_process
- Formatting Output with the -f Format Operator
- Filtering the Output with the Where-Object Command
- Using the IF statement
- Using the Switch Statement
- Script Reusability