msinfo32, wmic – Remotely read system information with WMI (2023)

Windows comes with two utilities that allow you to read system information for remote computers through Windows Management Instrumentation (WMI). For simple tasks, the graphical msinfo32.exe utility is sufficient; for complex demands, the powerful command-line tool wmic should be your first choice.


  1. Activate WMI
  2. System query with msinfo32
  3. Getting detailed information with wmic
  • Author
  • Recent Posts

Wolfgang Sommergut

(Video) A Powerful Windows 10 Utility to View your System Hardware Information! (WMIC in Command Prompt)

Wolfgang Sommergut has over 20 years of experience in IT journalism. He has also worked as a system administrator and as a tech consultant. Today he runs the German publication

Latest posts by Wolfgang Sommergut (see all)

  • Export certificate as CER, DER, P7B, or PFX - Wed, Aug 16 2023
  • Sleep computer (remotely) from the command line - Wed, Aug 9 2023
  • Find enabled local Group Policy settings with rsop.msc and PowerShell - Fri, Aug 4 2023

WMI is a management technology that can be used for much more than reading system information. WMI enables you to run processes remotely, schedule tasks that have to start at particular times, reboot computers remotely, read event logs, and find out which applications are installed on local and remote computers.

Activate WMI

Before you can use WMI, you have to find out whether its service is running. This can be done with the following command:

sc query winmgmt

If the service is not running, you can launch it with this command:

sc start winmgmt

Whenever you want to access remote PCs, the Windows firewall can get in your way. To check if the firewall accepts inbound WMI queries, you can run this command:

(Video) Windows WMI: WMI repository, Providers, Infrastructure, and namespaces

netsh advfirewall firewall show rule name="windows management instrumentation (WMI-in)"

Checking whether Windows firewall allows inbound WMI

If the firewall blocks WMI access, you can enable the corresponding rule in the following way:

netsh advfirewall firewall set rule group="windows management instrumentation (wmi)" new enable=yes

Enabling inbound WMI in Windows firewall

System query with msinfo32

The msinfo32.exe utility has been part of the operating system for many Windows versions. The tool is commonly used for reading the configuration of the local computer. However, on its View menu, you’ll find the Remote Computer item. Because the tool doesn’t allow you to enter username and password, you have to launch it with sufficient credentials for the remote computer.


(Video) How To: Enable the WMI Monitoring Service in Windows

The output of msinfo32 can’t be configured; however, the tool offers extensive information about integrated system components or essential Windows settings. In many cases, msinfo32 should be sufficient to get the information you are looking for.

Getting detailed information with wmic

The number of parameters that wmic displays when you run it with the option /? are overwhelming. However, if you don’t want to exhaust the limits of the tool’s possibilities and just want to retrieve system information, you will quickly feel at home.

If you start wmic without parameters, it will switch to interactive mode, which you can recognize by its prompt “wmic:root\cli>.” With /node:[computername], you can now connect to a remote computer.

Remote connection with wmic

One useful aspect about this command is that it allows you to connect to multiple computers by entering a list of comma-separated computer names. If you want to access the remote computer with alternate credentials, you can submit username and password, as in the following command:

/node:[computername] /user:[username] /password:[password]

Once you are connected, you can read system information with the help of the wmic aliases. They encapsulate WMI classes and give them a name that is easier to remember. To display the long list of wmic aliases, you just have to enter /?. If you have found the component that interests you, you can navigate to the object’s properties with the help parameter.

For instance, since the get method is used to read information, you can display a list of available properties about the operating system with OS get /?.

(Video) Setting up a Remote WMI Connection - Part 01

Operating system properties

So, if you want to know when the system last booted, you would enter OS get LastBootUpTime.

Remote connection with wmic

Extensive outputs of the program are hard to read on the console. For this purpose, you can export the information to an HTML table (/format:htable) or to the CSV format (/format:csv) to read the data in a web browser or in Excel, respectively. For example:

dmachannel get /all /format:htable

It is important to note that practically all non-alphanumeric characters in the parameters of the wmic commands are interpreted as delimiters, so you have to enclose a computer name such as “server-core” within double quotes.

The list below gives you an overview of all global switches and aliases.

wmic:root\cli>/?[global switches] <command>The following global switches are available:/NAMESPACE Path for the namespace the alias operate against./ROLE Path for the role containing the alias definitions./NODE Servers the alias will operate against./IMPLEVEL Client impersonation level./AUTHLEVEL Client authentication level./LOCALE Language id the client should use./PRIVILEGES Enable or disable all privileges./TRACE Outputs debugging information to stderr./RECORD Logs all input commands and output./INTERACTIVE Sets or resets the interactive mode./FAILFAST Sets or resets the FailFast mode./USER User to be used during the session./PASSWORD Password to be used for session login./OUTPUT Specifies the mode for output redirection./APPEND Specifies the mode for output redirection./AGGREGATE Sets or resets aggregate mode./AUTHORITY Specifies the <authority type> for the connection./?[:<BRIEF|FULL>] Usage information.For more information on a specific global switch, type: switch-name /?The following alias/es are available in the current role:ALIAS - Access to the aliases available on the local systemBASEBOARD - Base board (also known as a motherboard or system board) management.BIOS - Basic input/output services (BIOS) management.BOOTCONFIG - Boot configuration management.CDROM - CD-ROM management.COMPUTERSYSTEM - Computer system management.CPU - CPU management.CSPRODUCT - Computer system product information from SMBIOS.DATAFILE - DataFile Management.DCOMAPP - DCOM Application management.DESKTOP - User's Desktop management.DESKTOPMONITOR - Desktop Monitor management.DEVICEMEMORYADDRESS - Device memory addresses management.DISKDRIVE - Physical disk drive management.DISKQUOTA - Disk space usage for NTFS volumes.DMACHANNEL - Direct memory access (DMA) channel management.ENVIRONMENT - System environment settings management.FSDIR - Filesystem directory entry management.GROUP - Group account management.IDECONTROLLER - IDE Controller management.IRQ - Interrupt request line (IRQ) management.JOB - Provides access to the jobs scheduled using the schedule service.LOADORDER - Management of system services that define execution dependencies.LOGICALDISK - Local storage device management.LOGON - LOGON Sessions.MEMCACHE - Cache memory management.MEMORYCHIP - Memory chip information.MEMPHYSICAL - Computer system's physical memory management.NETCLIENT - Network Client management.NETLOGIN - Network login information (of a particular user) management.NETPROTOCOL - Protocols (and their network characteristics) management.NETUSE - Active network connection management.NIC - Network Interface Controller (NIC) management.NICCONFIG - Network adapter management.NTDOMAIN - NT Domain management.NTEVENT - Entries in the NT Event Log.NTEVENTLOG - NT eventlog file management.ONBOARDDEVICE - Management of common adapter devices built into the motherboard (system board).OS - Installed Operating System/s management.PAGEFILE - Virtual memory file swapping management.PAGEFILESET - Page file settings management.PARTITION - Management of partitioned areas of a physical disk.PORT - I/O port management.PORTCONNECTOR - Physical connection ports management.PRINTER - Printer device management.PRINTERCONFIG - Printer device configuration management.PRINTJOB - Print job management.PROCESS - Process management.PRODUCT - Installation package task management.QFE - Quick Fix Engineering.QUOTASETTING - Setting information for disk quotas on a volume.RDACCOUNT - Remote Desktop connection permission management.RDNIC - Remote Desktop connection management on a specific network adapter.RDPERMISSIONS - Permissions to a specific Remote Desktop connection.RDTOGGLE - Turning Remote Desktop listener on or off remotely.RECOVEROS - Information that will be gathered from memory when the operating system fails.REGISTRY - Computer system registry management.SCSICONTROLLER - SCSI Controller management.SERVER - Server information management.SERVICE - Service application management.SHADOWCOPY - Shadow copy management.SHADOWSTORAGE - Shadow copy storage area management.SHARE - Shared resource management.SOFTWAREELEMENT - Management of the elements of a software product installed on a system.SOFTWAREFEATURE - Management of software product subsets of SoftwareElement.SOUNDDEV - Sound Device management.STARTUP - Management of commands that run automatically when users log onto the computer system.SYSACCOUNT - System account management.SYSDRIVER - Management of the system driver for a base service.SYSTEMENCLOSURE - Physical system enclosure management.SYSTEMSLOT - Management of physical connection points including ports, slots and peripherals, and proprietary connections points.TAPEDRIVE - Tape drive management.TEMPERATURE - Data management of a temperature sensor (electronic thermometer).TIMEZONE - Time zone data management.UPS - Uninterruptible power supply (UPS) management.USERACCOUNT - User account management.VOLTAGE - Voltage sensor (electronic voltmeter) data management.VOLUME - Local storage volume management.VOLUMEQUOTASETTING - Associates the disk quota setting with a specific disk volume.VOLUMEUSERQUOTA - Per user storage volume quota management.WMISET - WMI service operational parameters management.For more information on a specific alias, type: alias /?CLASS - Escapes to full WMI schema.PATH - Escapes to full WMI object paths.CONTEXT - Displays the state of all the global switches.QUIT/EXIT - Exits the program.For more information on CLASS/PATH/CONTEXT, type: (CLASS | PATH | CONTEXT) /?

Want to write for 4sysops? We are looking for new authors.

4sysops members can earn and read without ads!

(Video) Windows Management Instrumentation (WMI) and AutoHotkey


Msinfo32, wmic – Remotely read system information with WMI? ›

Windows comes with two utilities that allow you to read system information for remote computers through Windows Management Instrumentation (WMI). For simple tasks, the graphical msinfo32.exe utility is sufficient; for complex demands, the powerful command-line tool wmic should be your first choice.

How do I access WMI remotely? ›

Change the following settings to get WMI working:
  1. On the target server, go to. Administrative Tools. ...
  2. Expand. Services and Applications. ...
  3. Right-click. WMI Control. ...
  4. On the. WMI Control Properties. ...
  5. Click. Security. ...
  6. Click. Add. ...
  7. Check. Remote Enable. ...
  8. Check if the connection is successful.

How to check MSINFO32 remotely? ›

Check MSInfo 32 by connecting to the remote PC
  1. Fill in the signup information.
  2. Then you can see you successfully logged in to AnyViewer. ...
  3. Log in to the same AnyViewer account on the two devices, then you can achieve a direct connection by clicking One-click control.
Nov 24, 2022

How do I get SystemInfo remotely? ›

SystemInfo is a built-in Windows command line that displays some basic info about not only about your local computer but any remote computers on the same network as well. Simply use the /s switch in the command followed by the name of the remote computer, like below.

How do I get system information from WMIC? ›

Finding out information like the Computer Manufacturer, Computer Model, Computer Name and System type using the command prompt is easy to do using the wmic command.
  1. Open a Command Prompt.
  2. Type the following command: wmic computersystem get model,name,manufacturer,systemtype.

Why i can't access WMI remotely? ›

WMI: Can't Connect to Remote WMI. Description: WMI can fail for a number of reasons. Some of those can include not having appropriate rights and permissions for access to machines or namespaces, problems with provider registration, corrupted repository, and scripting errors to name a few.

What is the difference between WMI and Wmic? ›

The Windows Management Instrumentation Command line (WMIC) is a software utility that allows users to performs Windows Management Instrumentation (WMI) operations with a command prompt.

What tool do you use to get system information remotely? ›

Windows comes with two utilities that allow you to read system information for remote computers through Windows Management Instrumentation (WMI). For simple tasks, the graphical msinfo32.exe utility is sufficient; for complex demands, the powerful command-line tool wmic should be your first choice.

How do I get system information from cmd? ›

Put on your (helpful) hacker hat and type Windows + R to bring up your computer's Run window. Enter cmd and press Enter to open the Command Prompt window. Type the command line systeminfo and press Enter. Your computer will show you all the specs for your system — just scroll through the results to find what you need.

What allows you to access a system remotely? ›

Today, remote access is more commonly accomplished using: Software: Using a secure software solution like a VPN. Hardware: By connecting hosts through a hard-wired network interface or Wi-Fi network interface. Network: By connecting via the internet.

What are the Wmic commands? ›

Useful Examples
  • wmic bios get Manufacturer,Name,Version wmic diskdrive get model,name,freespace,size # physical disks wmic logicaldisk get name # logical disks wmic printer list status wmci printerconfig list wmic os list brief # Windows version incl. ...
  • wmic.

How do I use WMIC commands? ›

The easiest way to run a WMI query is to run WMIC in the standard Windows command prompt:
  1. Open the command prompt.
  2. Type WMIC and press enter to invoke the program.
  3. Once the WMIC command prompt opens, run different WMI queries and get the required information as output.

What is msinfo32 command? ›

Opens the System Information tool to display a comprehensive view of the hardware, system components, and software environment on the local computer.

What tools can access the WMI interface? ›

Many administrators and IT professionals access WMI through Windows PowerShell. The Get-WMI cmdlet for PowerShell enables you to retrieve information for a local or remote WMI repository. As such, several WMI articles, especially Create WMI clients, contain PowerShell examples.

What is remote WMI operation? ›

WMI can be used to manage and access WMI data on remote computers. Remote connections in WMI are affected by the Windows Firewall and DCOM settings. User Account Control (UAC) may also require changes to some settings.

How do I open the WMI console? ›

The easiest way to run a WMI query is to run WMIC in the standard Windows command prompt:
  1. Open the command prompt.
  2. Type WMIC and press enter to invoke the program.
  3. Once the WMIC command prompt opens, run different WMI queries and get the required information as output.

How do I explore WMI? ›

To query WMI, you can use WMI Query Language (WQL) or the Get-WMIObject or Get-CIMInstance cmdlets. But, WMI Explorer does it for you. TIP: To get the query command that WMI Explorer ran, in the Query section of the menu, click the arrow key below the Query icon, and then click Custom Query.


1. Abusing Windows Management Instrumentation (WMI)
(Black Hat)
2. The ABCs of WMI - Finding Evil in Plain Sight
3. 70 WMIC full automation Windows Dos Commands tutotrial System Admin tutorial commands
(Uday Datrak)
4. How to Run Cmd Commands on Remote Computers - PsExec
(Matan Siga)
5. How to Rebuild WMI in Windows 10
(Carson Cloud)
6. [SOLVED] How to fix WMI error in Windows 10 or 11 | Error Invalid Class | WMI commands in Windows
(Computics Lab)
Top Articles
Latest Posts
Article information

Author: Ray Christiansen

Last Updated: 04/09/2023

Views: 6523

Rating: 4.9 / 5 (49 voted)

Reviews: 88% of readers found this page helpful

Author information

Name: Ray Christiansen

Birthday: 1998-05-04

Address: Apt. 814 34339 Sauer Islands, Hirtheville, GA 02446-8771

Phone: +337636892828

Job: Lead Hospitality Designer

Hobby: Urban exploration, Tai chi, Lockpicking, Fashion, Gunsmithing, Pottery, Geocaching

Introduction: My name is Ray Christiansen, I am a fair, good, cute, gentle, vast, glamorous, excited person who loves writing and wants to share my knowledge and understanding with you.