WMIC – OS information


You can use Wmic command line tool to gather some information of your operating system.

Here you can take some examples:

You can get version and installed partition

C:\>wmic os list status
Name                                                                     Status
Microsoft Windows 7 Enterprise |C:\Windows|\Device\Harddisk0\Partition2  OK

You can get built version, serial number, and system directory

C:\>wmic os list brief
BuildNumber  Organization  RegisteredUser  SerialNumber             SystemDirectory      Version
7601                       admin           xxxxx-011-xxxxxxx-xxxxx  C:\Windows\system32  6.1.7601

See what is free in your system

C:\>wmic os list free
FreePhysicalMemory  FreeSpaceInPagingFiles  FreeVirtualMemory  Name
1056040             4154176                 5005948            Microsoft Windows 7 Enterprise 
                                                               |C:\Windows|\Device\Harddisk0\Partition2

Run the help to see what you can list for the OS

C:\>wmic os list /?
......
LIST [<list format>] [<list switches>]
The following LIST formats are available:
BRIEF
FREE 
FULL 
INSTANCE 
STATUS
SYSTEM
WRITEABLE
....

Hope that this can be useful

Advertisements

About rodvars
Been working in IT Services/Consulting for the past 15 years. My main areas of work are planning, development, managing and administration System infrastructures focusing on optimizing user processes, enforcing business security, performance enhancements, high availabilty and infrastucture scalability.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: