Help Admin Adding a monitor Configuring WMI on Windows Servers

Configuring WMI on Windows Servers

Windows Management Instrumentation (WMI) is a set of specifications for managing devices and applications on Windows-based operating systems (OSs). WMI provides the status of local or remote computer systems, and comes installed with most of the Windows OSs.

You have to configure WMI on Windows servers to monitor them using Site24x7. This configuration involves the following steps:

Checking if the WMI service is running

  1. From your Windows machine, open services.msc.
  2. Search for the Windows Management Instrumentation service.
  3. Check if the Status is Running. If not, Start the service.

Enabling WMI in a remote monitor

  1. Go to Control Panel > Administrative Tools > Computer Management.
  2. In the Computer Management screen, expand Services and Applications.
  3. Right click WMI Control and click Properties.
  4. In the WMI Control Properties screen, go to the Security tab.
  5. Click the Security button.
  6. Under Group or user names, select the user that will be requesting WMI data and click Add.
  7. Under Permission for Administrators, ensure that Remote Enable is checked for Allow.

Allowing firewall

All users will be able to query or read WMI data on local machines. To read WMI data on a remote server, you've set the following some to allow firewall. For this, open Command Prompt with Administrator privileges, and execute the following commands:

For Windows XP, Windows Vista, and Windows 7
netsh firewall set service RemoteAdmin enable
For Windows 8, Windows 8.1, and Windows 10
netsh advfirewall firewall set rule group="Windows Remote Management" new enable=yes
netsh advfirewall firewall set rule group="windows management instrumentation (wmi)" new enable=yes

Checking and connecting to a WMI remote monitor

Connecting to WMI remotely with PowerShell

Use the -ComputerName parameter common to most WMI cmdlets, such as Get-WmiObject.

$strComputer = "Computer_B"
$colSettings = Get-WmiObject Win32_OperatingSystem -ComputerName $strComputer
Connecting to WMI Remotely with VBScript

Use a moniker that contains the name of the remote system in the call to GetObject.

strComputer = "Computer_B"
Set objWMIService = GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colSettings = objWMIService.ExecQuery("Select * from Win32_OperatingSystem")

Refer to Microsoft's documentation to learn more.

Was this document helpful?
Thanks for taking the time to share your feedback. We’ll use your feedback to improve our online help resources.

Help Admin Adding a monitor Configuring WMI on Windows Servers