Skip to main content

Questions tagged [wmi]

Windows Management Instrumentation (WMI) is the infrastructure for management data and operations on Windows operating systems. It is based on Web-Based Enterprise Management (WBEM) and Common Information Model (CIM).

Filter by
Sorted by
Tagged with
0 votes
1 answer
61 views

Can we get text scaling and monitor properties with WMI?

It is possible to use WMI to detect things like: Text scaling Screen resolutions Multiple Monitor configuration/layout ? I see Win32_DesktopMonitor but it doesn't seem to give me any of this info.
Andrew Truckle's user avatar
1 vote
0 answers
174 views

Win32_EncryptableVolume and Bitlocker

I am playing around trying to learn the Win32_EncryptableVolume class functionality (https://learn.microsoft.com/en-us/windows/win32/secprov/win32-encryptablevolume). I have created a VM for the ...
user2334659's user avatar
0 votes
0 answers
836 views

NVIDIA Drivers cause WMI corruption

Several versions of recent NVIDIA drivers are corrupting WMI. We discovered this when our systems stopped being able to update group policy, run resultant set of policy, and other items were broken. ...
Appleoddity's user avatar
  • 11.8k
0 votes
0 answers
65 views

Check if Logitech K400+ is turned on or off / Logitech K400+ Power Change Event

I'd like to run a script when I turn my Logitech K400+ on or off. I tried to detect the status of the device using Get-WmiObject win32_keyboard and Get-WmiObject win32_PointingDevice, however, the ...
FatalBulletHit's user avatar
0 votes
1 answer
908 views

Cleaning up Windows store app install state

I'm trying to remove all traces of an old version of Microsoft 3D Viewer. These PowerShell commands say it's installed Get-AppXPackage -All Microsoft.Microsoft3DViewer Get-WmiObject -Query "...
Rup's user avatar
  • 1,012
1 vote
1 answer
151 views

How do I get a WMI subscriber to run from a script?

I am trying to register a WMI event handler from inside a Powershell script file. Here is the complete script I'm testing with. $RegPath = 'HKCU:\Test\' $Query = "SELECT * FROM ...
UpTide's user avatar
  • 145
7 votes
3 answers
7k views

Motherboard missing serial number and UUID?

I have several machines I have networked together and I use information about the motherboard to uniquely identify them. This is the Windows PowerShell code I use to get it: >> $Manufacturer = ...
EllipticalInitial's user avatar
1 vote
1 answer
320 views

Windows how to emulate an internal display in a virtual machine

I'm trying to run a program in a virtual machine, this program try to fetch my display information trought Windows WMI with a query: var success = true; List<Display> displays = new List<...
leo________'s user avatar
0 votes
0 answers
76 views

Remote Procedure Call slow returning error

I have a server process that sends a WMI query to multiple PCs at frequent intervals. Normally it works fine and takes about 1 second to get a result from each PC. When there is a problem reaching a ...
WMIneedHelp's user avatar
0 votes
1 answer
450 views

Get a list of supported GPU engine types

I am trying to pull GPU metrics off WMI/ Powershell From my research I gathered that the GPU usage is segregated into different "Engine Types" (https://devblogs.microsoft.com/directx/gpus-in-...
user-x's user avatar
  • 3
2 votes
0 answers
426 views

Attempting to register WMI task results in Event ID 10 with Error 0x80041010

I am currently trying to register a task in the WMI to run a script whenever a USB stick is inserted. For testing purposes I have written the following .mof-file (mostly taken from here): #PRAGMA ...
Jan Mackenstein's user avatar
0 votes
0 answers
636 views

Sensible debugging of WMI Provider/Service?

So I'm trying to make sense of the issue with WMI I have. Every time a new object change is made via Group Policy Client (be it new firewall rule or any other property state change) I see about 50 WMI ...
Digika's user avatar
  • 21
1 vote
1 answer
193 views

Renaming Computer by executing Bat Files

I am trying to create a FAST API to change the name of the system by executing the bat files. The name gets changed but its not accepting special characters like -, , and '. I have searched a lot but ...
Xandra's user avatar
  • 11
0 votes
1 answer
794 views

Odd entries for Win32_LogonSession and respective StartTime

I'm sorry if this isn't the best place to ask this, but if not here, I'm not sure where else. I've recently been debugging my computer and trying to see if there is any hidden malware. I've mostly ...
John Hunt's user avatar
-1 votes
1 answer
53 views

Is there any benefit of keeping the default boot drive of Windows 10 as C:?

I am using below query to find that the default drive in Windows 10 is C:, is there any benefit of keeping it as it is. Also how to change the default boot drive so that it is reflected in the result ...
Divik Shrivastava's user avatar
1 vote
1 answer
1k views

Windows wmic: list all available screen resolutions without using Powershell

I am well aware that I can get all available screen modes in Powershell using gwmi - for example, as follows: (gwmi -N "root\wmi" -Class WmiMonitorListedSupportedSourceModes)[0]....
Adrian S's user avatar
  • 111
1 vote
2 answers
13k views

How to use WMI to query IP address from specific NIC?

I have a computer with two NICs. I'm trying to query the IP address of each NIC separately to use in BGInfo. This article describes how to query the IP address of only active network interfaces. It ...
Izzo's user avatar
  • 227
1 vote
0 answers
127 views

WMI class Win32_PerfFormattedData_PerfOS_NUMANodeMemory doesn't work

I am trying to query the NUMA status from WMI on Windows 10. This works on Supermicro 7049, HP Z840, and Asus PA90, but it fails on Supermicro 7048. Is there some limitation about when this query is ...
Elliott B's user avatar
  • 1,225
1 vote
1 answer
3k views

WMIC error: No Instance(s) Available (wmic product get name, version)

I am trying to get the list of installed software in a brand new Windows 10 (Pro) machine. In my case it seems some wmic commands work while others don't. Find below two real examples: $ wmic cpu get ...
Atenea_v10's user avatar
5 votes
3 answers
4k views

How to properly filter a wmic diskdrive list

I'm trying to filter results of a wmic list with where-object but unfortunately this does not seems to work. wmic diskdrive list brief | Where-Object -Property "Caption" -Contains "...
Soleil's user avatar
  • 384
0 votes
1 answer
98 views

WMI Provider Host spiking CPU on Windows 10

Background: 2010 Dell desktop computer Windows 10, version 1909 The computer is sluggish: programs are slow to start, video is constantly buffering, etc. Task Manager shows that "WMI Provider ...
Michael Easter's user avatar
0 votes
1 answer
238 views

Finding rogue process spawning short lived WMIC.exe commands

There is a rogue process on my system spawning very CPU intensive WMIC.exe processes. They are so short lived that I can't seem to interact with them before they finish, but I believe they are causing ...
yeerk's user avatar
  • 101
1 vote
0 answers
501 views

WMI provider host high CPU load

I know there are plenty of posts about that issue, and I have read them. All the suggests boil down to: Rebuilding WMI Repository - I checked and winmgmt reports that the repository is consistent ...
Demiurg's user avatar
  • 261
0 votes
1 answer
939 views

WMI Service Host using a high amount, 10-20% CPU a lot of the time

On my Windows 10 laptop, the application WMI Service Host is using a considerable amount of CPU time and spinning the fans up. This is not normal operation. WMI should be called somewhat rarely. I can'...
Lupilum's user avatar
  • 143
0 votes
1 answer
606 views

Windows Management Instrumentation - How to get Server Roles and connected Services/Drives

For a work project I'm tasked with developing a python script that reads the roles from a a Windows-Failover Cluster running in Windows Server 2019 Standard Eval. If I need to provide more info, I can ...
LifeLifeLP's user avatar
2 votes
0 answers
2k views

PowerShell's 'Get-Hotfix' and 'Win32_QuickFixEngineering' WMI class doesn't return any results

Get-Hotfix doesn't appear to be working on one of our Windows 10 1803 machines - it doesn't return any results, no errors either. It's the same with Get-CimInstance Win32_QuickFixEngineering | Select ...
d3Xt3r's user avatar
  • 336
0 votes
1 answer
3k views

What is exactly WMI and why my Linux machine fails to use it?

I noticed such a line in my dmesg: [ 2.854164] hp_wmi: query 0xd returned error 0x5 As far as I googled, WMI is some Windows-specific tool. But my Ubuntu PC still tries to use it! I found a ...
keddad's user avatar
  • 759
2 votes
0 answers
1k views

How to "shutdown" or "disable" an HDMI port on Windows?

My objective is to power on my projector automatically. My projector can power on automatically : at computer startup (restart doesnt effect) plugin the HDMI cable (after unplug) Windows+P doesn't ...
Baud's user avatar
  • 21
0 votes
1 answer
849 views

wmi_exporter: How do I calculate the individual process cpu utilization in percentage?

software: wmi_exporter. Can anyone tell me on how to calculate the single process cpu utilization in percentage? I think it may uses the matrices wmi_process_cpu_total{process="my process"} but I have ...
sagerKing's user avatar
0 votes
0 answers
761 views

PowerShell Get-PhysicalDisk MediaType returns no data on servers

I want to use Get-PhysicalDisk | select MediaType to find SSD drives. Like the question said, fails on Server 2012 R2. Also tried using VBScript WMI: On Error Resume Next strComputer = "." Set ...
SKidd's user avatar
  • 131
1 vote
1 answer
3k views

How to find related Win32_PnpSignedDriver instance?

To get a list of current devices and their drivers I can do the following with Powershell on Windows: > $drvdev = gwmi Win32_SystemDriverPnpEntity and then examine the returned Win32_SystemDriver ...
mikewse's user avatar
  • 255
3 votes
1 answer
9k views

How to find driver version for all devices through WMI?

When I look in Device Manager on my Windows 8.1 system, I can see the driver version and other info for the "Management Engine Interface" device: Intel(R) Management Engine Interface Driver Date: 11/...
mikewse's user avatar
  • 255
2 votes
1 answer
311 views

What's the maximal frequency of WMI queries?

As explained in this previous question, I'm dealing with some serious WMI issues. Now one of the options I'd like to explore is the maximal frequency of WMI queries, if any: Imagine a WMIPrvSE.exe ...
Dominique's user avatar
  • 2,259
2 votes
0 answers
2k views

What's the link between a WMI using application and the WMIPrvSE.exe process?

Good morning, This is already my third question on this site concerning WMI, hereby the links to my first question and my second question. One of my customers is experiencing a problem, related to ...
Dominique's user avatar
  • 2,259
4 votes
0 answers
1k views

Uninstall Per-User installation from another user account

I have an application installed with a MSI package as Per-User in a non-admin account, so the application is not on Program Files, but in User\AppData. I'm trying to uninstall that application from an ...
AMEB's user avatar
  • 41
2 votes
1 answer
2k views

How do I toggle my touchscreen with a keyboard shortcut, or from a script?

I want to press a keyboard shortcut to toggle my touchscreen state on/off. How do I do this?
user541686's user avatar
1 vote
0 answers
1k views

Getting Windows Defender Status from WMI on Windows 7

Problem: On windows 10 I query the WMI using C# at the namespace Root\Microsoft\Windows\Defender for the class MSFT_MpComputerStatus to get useful information about the computer antivirus status (see ...
Herve Mutombo's user avatar
1 vote
2 answers
17k views

Listing Bios settings using Windows PowerShell

I have a Hp Pavilion g6 laptop running Windows 10 Pro and I would like to list all (or as much) bios setting as I can from within windows without actually going into the bios for debugging purposes. I ...
user22341's user avatar
3 votes
3 answers
3k views

Get the sector size of a drive letter without using fsutil

I need to know how to get the sector size for a drive letter, eg C:, without using fsutil in a PowerShell script. Batch and VBS are also acceptable. The fsutil tool is perfect for this as it returns ...
seagull's user avatar
  • 5,594
1 vote
0 answers
1k views

WBEMTEST fails with RPC Server is Unavailable (Tried all suggested possibilities and no luck)

I am using WMI to authenticate to a remote windows machine and not able to succeed. Therefore to dig deeper, I have used wbemtest and then tried to connect to the windows machine and got the below ...
Xason Jack's user avatar
2 votes
2 answers
428 views

How can I determine the bus clock programatically or via command line in Windows 10?

I want to write a program that displays some system information. How can I programmatically determine the clock speed of the bus?
Cephalopod's user avatar
0 votes
0 answers
2k views

Change AD Computer Description via CSV and Powershell

I'm fairly new to scripting in PowerShell, therefore, please pardon my skill... I have this mini project to update AD computers descriptions based on the following format from a CSV file I have: ...
Chris's user avatar
  • 1
1 vote
1 answer
183 views

XP64 2 XP64 install software using WMI

I try to install a .exe remote onto my gaming PC. I know the .exe exists but the call gives me an error. C:\WINDOWS>wmic /node:"Spiele" /user:"Spielen" /password:"XXX" product call install true,"",...
Grim's user avatar
  • 201
4 votes
2 answers
11k views

Retrieve printer driver version with Powershell PrintManagement cmdlets?

The version numbers in the gui look like 10.0.17134.1 and 3.0.8.0 but their equivalents (?) from the Get-PrinterDriver-cmdlet look at least cryptic: Get-PrinterDriver | Select-Object Name, ...
TNT's user avatar
  • 311
0 votes
1 answer
4k views

What is a WQL query to get all devices connected to a specific hub?

What is the WMI / WQL Query syntax to get all devices connected to a specific USB Hub? I can open up a PS terminal and enumerate all USB Hub Devices, as such: gwmi Win32_UsbHub | fl * The output ...
Sarah Weinberger's user avatar
2 votes
2 answers
2k views

WMI query, get local info from remote server (for BgInfo)

I'm using BgInfo on a Windows server that users remotely connect to via RDP. BgInfo allows you to create custom elements based on WMI queries. I'd like to show the user's local hostname or IP address. ...
root's user avatar
  • 3,750
1 vote
1 answer
2k views

wmic output empty when run from batchfile, but contains info when run from cmd

I have this wmic command which finds out the PID of my process and works fine from cmd, but refuses to produce output when executed in a bat-file: wmic /output:process.pid process where (Name like '%...
sinned's user avatar
  • 509
0 votes
0 answers
661 views

Get current privacy settings for Windows 10 1803 using WMIC

There is supposedly a WMI provider for the privacy options I tried wmic -namespace:\\root\cimv2\mdm\dmmap path MDM_Policy_Config01_Privacy2 but that doesn't seem to be the right namespace UPDATE: ...
infixed's user avatar
  • 819
14 votes
9 answers
104k views

How to get OS Version through Powershell with WMI?

Does anybody know how to get the OS Version like this: OS Version: 1607 With using Get-WmiObject? Couldn't find this Informatin at all..
j.walt's user avatar
  • 141
0 votes
1 answer
3k views

taskkill command only killing the file explorer opened using subprocess.Popen()

I have opened two instances of D:\akshit folder. One I opened manually using GUI. But the other one, I created with a script that calls subprocess.Popen(). Now whenever I write the following command, ...
akshit bhatia's user avatar