Skip to content

Windows WMIC command

Windows WMIC (Windows Management Instrumentation Command-line) is a powerful tool for system administrators to manage various aspects of the Windows operating system. With WMIC, users can query for system information, configure system settings, start processes remotely, and much more. This command-line utility leverages the Windows Management Instrumentation (WMI) infrastructure to provide a wide range of functionalities. WMIC can be used to gather system information, manage user accounts, interface with the registry, and execute various tasks on local or remote systems. This versatile tool can help streamline system administration tasks and troubleshooting processes, making it an essential component of the Windows management toolkit.

WMIC Syntax:

Terminal window
wmic [alias] [options] [parameters]

Options:

OptionDescription
/NAMESPACESpecifies the namespace for the alias.
/NODESpecifies the target node(s).
/USERSpecifies the user context.
/PASSWORDSpecifies the password.
/LOCALESpecifies the locale.
/ROLESpecifies the role.
/PRIVILEGESSpecifies the privileges.
/TRACEOutputs detailed tracing information.
/INTERACTIVEEnables interactive mode.
/FAILFASTStops processing on first error.
/RECORDWrites the output to a file.

Parameters:

ParameterDescription
ALIASSpecifies the alias.
GETRetrieves specific properties.
LISTRetrieves all instances of the alias.
WHEREFilters the results.
CALLInvokes a method.
CREATECreates an instance.
DELETEDeletes an instance.
SETUpdates an instance.
ASSOCIndirect association to a class.
CLASSSpecifies the instance (alias) to retrieve.
PATHSpecifies the path of the instance.
FORMATFormats the output.
OUTPUTRedirects output to a file.
CONSOLERedirects output to the screen.
VALUEOFRetrieves the value of a property.
TRANSLATETranslates managed object format (MOF).
STATUSRetrieves the status of an instance.
GROUPSpecifies a group of objects.
NAMESPACESpecifies the namespace.
ROLESpecifies the role.
PRIVILEGESSpecifies the privileges.
LOCALESpecifies the locale.
TRACEOutputs detailed tracing information.
INTERACTIVEEnables interactive mode.
FAILFASTStops processing on first error.
RECORDWrites the output to a file.
/Separator for aliases with namespaces.

WMIC Usage:

Check System Information

Terminal window
wmic csproduct get name, vendor, version

Retrieves information about the system, such as the product name, manufacturer, and version.

List Running Processes

Terminal window
wmic process list brief

Displays a list of running processes on the system, including their process ID and description.

Retrieve Network Adapter Information

Terminal window
wmic nic get name, speed, macaddress

Displays details of network adapters installed on the system, like the adapter name, speed, and MAC address.

Monitor CPU Temperature

Terminal window
wmic /namespace:\\root\wmi PATH MSAcpi_ThermalZoneTemperature get CurrentTemperature

Monitors the current CPU temperature using Windows Management Instrumentation Command-line (WMIC).

Common Questions on WMIC Usage:

How can I list all installed software on Windows using WMIC?

To list all installed software on Windows using WMIC, run the following command:

Terminal window
wmic product get name, version

How can I find the computer model using WMIC in Windows?

To find the computer model using WMIC in Windows, use the following command:

Terminal window
wmic csproduct get name

How do I retrieve system information using WMIC in Windows?

To retrieve system information using WMIC in Windows, execute the following command:

Terminal window
wmic os get caption, version

How can I view the list of processes running on Windows with WMIC?

To view the list of processes running on Windows using WMIC, enter the command below:

Terminal window
wmic process list brief

How do I get the list of currently logged-in users using WMIC in Windows?

To get the list of currently logged-in users using WMIC in Windows, use the command:

Terminal window
wmic ComputerSystem Get UserName

How to check the system’s total physical memory with WMIC in Windows?

To check the system’s total physical memory using WMIC in Windows, run the following command:

Terminal window
wmic memorychip get capacity

How can I display network adapter information using WMIC on Windows?

To display network adapter information using WMIC on Windows, use the following command:

Terminal window
wmic nic get name, index

Applications of the WMIC Command

  • Hardware inventory
  • System information retrieval
  • Software management
  • Process management
  • Service management
  • User account management
  • Network configuration
  • Security settings
  • WMI repository management
  • Event log access