Top "Wmi" questions

Windows Management Instrumentation (WMI) is an API for managing the Windows operating system on local or remote computers.

Explain VBScript WMI query / impersonationLevel, etc

Dim strComputer, objReg, ScriptName, strKeyPath, strValueName, strValue Const HKEY_LOCAL_MACHINE = &H80000002 strComputer = "." Set objReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\" &…

vbscript wmi wmi-query
How to identify what device was plugged into the USB slot?

I want to detect when the user plugs in or removes a USB sound card. I've managed to actually catch …

c# usb wmi plug-and-play
Determine my time zone offset using VBScript?

How can I determine my time zone offset using VBScript? The Windows OS provides the TZ environment variable. For Eastern …

vbscript timezone wmi utc timezone-offset
How can I find the Upgrade Code for an installed MSI file?

In certain cases the need to retrieve MSI upgrade codes for deployed packages can arise. Common scenarios: I took over …

powershell wix windows-installer installation wmi
How to join in a WMI Query (WQL)

I want to get the serial number of the boot-harddisk via a WQL query. The boot-partition can be retrieved using …

c++ vbscript wmi wql
How do I detect a disabled Network Interface Connection from a Windows application?

I would like to know when a interface has been disabled. If I go into the windows manager and disable …

c++ windows winapi networking wmi
How can I find the Harddisk Device Serial Number without using the WMI in .NET?

I want to get the hardwired serial number from the hard disk but NOT using WMI. I tried using WMI …

c# .net vb.net wmi hard-drive
Powershell - calling remote WMI objects - RPC error HRESULT: 0x800706BA (RPC server not available)

I've got some troubles with Get-WmiObject and usage of this object. In case, I'm connecting to remote computer - which …

powershell wmi rpc remote-administration win32-process
How do I use WMI with Delphi without drastically increasing the application's file size?

I am using Delphi 2010, and when I created a console application that prints "Hello World", it takes 111 kb. If I …

delphi wmi
Error 'Get-WmiObject : Invalid class "Msvm_ImageManagementService"'

Recently I've been getting this error, and I have no idea what triggered it. The documentation I found regarding this …

powershell wmi windows-server-2012-r2