How to Retrieve Operating System Information Using a Command Line
How to Retrieve Operating System Information Using a Command Line
There are many command line utilities that you can use to retrieve operating system information along with switches to filter for specific data.
For instructor-led Windows Server training, see our class schedule.
Using VER.EXE.
The first command line utility is the VER.exe command. When using this command you will only retrieve the operation system version. If you are using Windows Vista or later as your desktop OS or Windows Server 2008 or later the command will only display the version number. You will then need to convert the number to determine the OS. See figures below:
Windows 8.1 OS
Windows Server 2012 R2 OS
Using SYSTEMINFO.EXE
Another command you could use is Systeminfo.exe. This utility will give you a wealth of information about your OS. See figures below for examples:
Windows Server 2012 R2 OS
As you can see Syteminfo.exe dumps and enormous amount of data for you operating system. But what if you are looking for a specific piece of data such as name and version. You can pipe the output to Findstr to filter on the desired data. See figure below:
Using WINVER.EXE.
Another command utility that can be used is Winver.exe. See figure below:
Using WMI.
Windows Management Instrumentation can also be queried to retrieve operating system information. See figure below:
The above commands will work on all operating systems running Windows XP and Server 2003 and later.
PowerShell can also be used to retrieve operating system information. But, I will leave that for another discussion. Hope this blog helps you retrieve operating system information.
Until next time, RIDE SAFE!
Rick Trader
Windows Server Instructor – Interface Technical Training
Phoenix, AZ
You May Also Like
A Simple Introduction to Cisco CML2
0 3703 0Mark Jacob, Cisco Instructor, presents an introduction to Cisco Modeling Labs 2.0 or CML2.0, an upgrade to Cisco’s VIRL Personal Edition. Mark demonstrates Terminal Emulator access to console, as well as console access from within the CML2.0 product. Hello, I’m Mark Jacob, a Cisco Instructor and Network Instructor at Interface Technical Training. I’ve been using … Continue reading A Simple Introduction to Cisco CML2
How to Build in a PSMethod to your PowerShell Code
0 68 0In this video, PowerShell instructor Jason Yoder shows how to add Methods (PSMethod) to your code using free software that’s added into the PSObject. For instructor-led PowerShell courses, see our course schedule. Microsoft Windows PowerShell Training Download the Building Methods PowerShell script</a> used in this video. <# ╔══════════════════════════════════════════════════════════════════════════════╗ ║ ║ ║ Building Methods ║ ╟──────────────────────────────────────────────────────────────────────────────╢ … Continue reading How to Build in a PSMethod to your PowerShell Code
Configuring Windows Mobility Center and How to Turn it On and Off
1 1413 1Video transcription Steve Fullmer: In our Windows training courses, we often share information about the Windows 8.1 Mobility Center. Mobility Center was introduced for mobile and laptop devices in Windows 7. It’s present and somewhat enhanced in Windows 8. Since we don’t have mobile devices in our classrooms, I decided to take a little bit … Continue reading Configuring Windows Mobility Center and How to Turn it On and Off