Top "Wmi" questions

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

Detecting USB drive insertion and removal using windows service and c#

Looking into possibility of making an USB distributed application that will autostart on insertion of an USB stick and shutdown …

c# .net windows windows-services wmi
Get a user's email address from the username via PowerShell and WMI?

I have a user's network login name. From PowerShell and WMI is it possible to get a valid email for …

powershell active-directory wmi powershell-2.0
WMI: Get the list of Installed Softwares

I need to get the list of installed softwares on remote Windows hosts using wmi calls. I have tried using …

windows wmi
How to read ManagementObject Collection in WMI using C#

I found a code on net and have been trying to get more information about mo[]. I am trying to …

c# windows winapi wmi
How to determine OS Platform with WMI?

I am trying to figure out if there is a location in WMI that will return the OS Architecture (i.…

architecture registry wmi operating-system
Get Screen resolution using WMI/powershell in Windows 7

I am using the following script to get screen resolution in Windows using WMI. The script works fine when the …

windows-7 powershell wmi
NetBIOS domain of computer in PowerShell

How can I get the NetBIOS (aka 'short') domain name of the current computer from PowerShell? $ENV:USERDOMAIN displays the …

powershell active-directory wmi netbios
Identify process using a file

I have been trying to figure out how to programmatically identify the process that has a lock on a particular …

windows winapi wmi
How to get total physical memory (ram) information in GB by WMI query?

I know how to get total physical memory from win32_computersystem class. but that comes in bytes or kb. I …

windows wmi wmic wql
Could not convert variant of type (Null) into type (OleStr)

Do you know why the block of code bellow will negate the "Could not convert variant of type (Null) into …

delphi wmi delphi-xe2 ole