Windows Management Instrumentation (WMI) is an API for managing the Windows operating system on local or remote computers.
Questions tagged [wmi]
4365 questions
11
votes
2 answers
High Performance Event Log
So I've been trying various ways to get Event Log data in bulk (1000+ records/second).
I need something that can filter out old logs, right now I store the last recorded event record ID and retrieve all records where the event ID is greater than…

StrangeWill
- 2,106
- 1
- 23
- 36
11
votes
3 answers
How to check if windows user has a password set?
Question
I didn't know it would be this difficult to figure out but here I am.
I'm developing a net support client which has to detect if the current logged in user has a password set. I tried it with WMI checking the PasswordRequired property in…
user490629
11
votes
5 answers
Can the physical USB port be identified programmatically for a device in Windows?
I have a USB device that enumerates with a different interface, VID, PID and serial number when commanded to do so, and I'd like to keep track of the physical device after this change occurs. My thought was to track it by its hub and port…

Judge Maygarden
- 26,961
- 9
- 82
- 99
11
votes
1 answer
Get sensor values (like Temperature of GPU and CPU) and fan speeds of Windows 10 PC
I've been trying to get a Python script to show temperatures for CPU, GPU and other availabile sensors in my hardware, but I haven't found anything useful.
I tried using WMI to get those values, but my processor is apparently not supported.
The code…

George Lazu
- 301
- 3
- 10
11
votes
2 answers
Get total amount of GPU memory?
Is there an easy and reliable way to get the total amount of the physical GPU memory?
I have tried this, but the problem is it returns 4096MB and I'm using a GTX 780 with 6144MB, so yeah not displaying correctly.
Code:
using System.Management; …

Patrik Fröhler
- 1,221
- 1
- 11
- 38
11
votes
3 answers
C# Get working directory of another process
I want to determine the absolute path of files used by a known process by reading the command line. Currently, the process is started with relative paths in the command line that point to various files such as config files. The problem is that if…

Steven
- 111
- 1
- 1
- 4
11
votes
4 answers
Why would I choose Powershell over WMI to develop management interfaces?
We are discussing development of an improved management infrastructure for our distributed system.
We use COM, web services and .NET components. Since we're based on Microsoft Windows Server XP/2003, I guess, we basically have two…

user33675
- 1,473
- 11
- 11
11
votes
9 answers
MSI Error "The computer must be trusted for delegation" caused by KB2918614
We have an MSI based installer that recently stopped working on a Windows 2008 R2 environment. The installer is copied over to the target computer using the \\servername\c$\ admin UNC shares and then is remotely executed using the create method on…

Greg Bray
- 14,929
- 12
- 80
- 104
11
votes
4 answers
Network Authentication when running exe from WMI
I have a C# exe that needs to be run using WMI and access a network share. However, when I access the share I get an UnauthorizedAccessException. If I run the exe directly the share is accessible. I am using the same user account in both…

Andy
- 307
- 4
- 13
11
votes
4 answers
How to execute SSIS package when a file is arrived at folder
The requirement is to execute SSIS package, when a file is arrived at a folder,i do not want to start the package manually .
It is not sure about the file arrival timing ,also the files can arrive multiple times .When ever the files arrived this has…

user1254579
- 3,901
- 21
- 65
- 104
11
votes
2 answers
'proper' & reliable way to get all installed windows programs in Python?
I've seen numerous ways of retrieving installed programs on WinXP+ in python. What is the proper and most robust way of doing this?
Currently I'm accessing HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall and reading each of the keys…

ThantiK
- 1,582
- 4
- 17
- 31
11
votes
4 answers
List of SerialPorts queried using WMI differs from devicemanager?
I have the following serial ports listed in my devicemanager:
COM3
COM4 (BT)
COM5 (BT)
COM6 (GlobeTrotter MO67xx - Control Interface)
COM7 (GlobeTrotter MO67xx - GPS Control Interface)
COM8 (GlobeTrotter MO67xx - GPS Data Interface)
COM9…

AlexS
- 5,295
- 3
- 38
- 54
11
votes
4 answers
Why are WMI Queries so slow sometimes?
I am using System.Management namespace in a .Net to execute various WMI queries against a remote server. In my logs I can see that sometimes the queries take 30 or 40 seconds to complete while other times the queries complete in less than a…

Josh Clark
- 625
- 2
- 9
- 12
11
votes
13 answers
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.e. 32-bit or 64-bit) that will work across "all" versions of Windows. I thought I had figured it out looking at my Win2k8 system when I found the…

user172286
- 131
- 1
- 1
- 5
11
votes
5 answers
What format is this time value in?
I have a WMI query that specifies time in this format '20090219000000.000000+480'
Can someone tell me what format this is, and does .NET have any built-in functionality to work with it?
EDIT
This time value is from a sample query that I found. I…

TWA
- 12,756
- 13
- 56
- 92