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
0 answers
54 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
209 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
0 votes
0 answers
83 views

map Win32_VideoController instance to an instance of Win32_PerfFormattedData_GPUPerformanceCounters_GPUAdapterMemory

I want to pull GPU metrics using WMI/ Powershell. From WMI explorer, I can see that there are 2 instances of the Win32_PerfFormattedData_GPUPerformanceCounters_GPUAdapterMemory class as I have a 2 ...
user-x's user avatar
  • 3
2 votes
0 answers
212 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
369 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
  • 11
1 vote
1 answer
142 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
420 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
45 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
631 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
8k 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
  • 207
1 vote
0 answers
105 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,083
1 vote
1 answer
2k 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
3k 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
  • 344
0 votes
1 answer
66 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
133 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
321 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
  • 241
0 votes
1 answer
567 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
  • 133
0 votes
1 answer
391 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
1 vote
0 answers
1k 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
  • 308
0 votes
1 answer
2k 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
  • 629
2 votes
0 answers
805 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
773 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
568 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
  • 139
1 vote
1 answer
2k 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
6k 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
224 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
  • 1,921
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
  • 1,921
4 votes
0 answers
788 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
  • 23.6k
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
13k 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,366
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
297 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
1k 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
121 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
  • 195
2 votes
2 answers
8k 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
  • 271
0 votes
1 answer
3k views

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,652
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
  • 479
0 votes
0 answers
548 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
  • 809
13 votes
7 answers
91k 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
  • 131
0 votes
1 answer
2k 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
1 vote
2 answers
1k views

Set remote time via WMI (invoke Win32_OperatingSystem.SetDateTime())

The goal is to make XML/SOAP/WSMan request from Python and Linux and set time on remote Windows 10 machine. I can do that via CMD, PowerShell or Cygwin/SSH but I need fast native way. I'm doing a lot ...
George Sovetov's user avatar
0 votes
1 answer
2k views

How to close an instance of file explorer using python?

I have 3 instances of File Explorer running on my system. In the task manager, there is only a single process_id assigned to explorer.exe So if i want to kill one particular instance of explorer ...
akshit bhatia's user avatar
1 vote
0 answers
258 views

WMI script to adjust Speakers' Balance (Win7)

I would like to create a script that configures the Balance on my Speakers-- specifically I would like to call WMI (Windows Management Instrumentation) from a VBScript if possible. Is this adjustment ...
Patrick Parker's user avatar
1 vote
1 answer
2k views

wmic + powershell run a command to search and remove files

I want to clean a website before a deploy. In order to do that, I use WMIC to run remotely and Powershell to remove all the files except some specific ones: WMIC /node:server /user:user /password:...
Luis's user avatar
  • 131
0 votes
1 answer
440 views

CIM_Battery WMI Class has no instances

I am trying to create a C# Application that records the battery percentage over time, and to do that I have been trying to use the .NET WMI API. I looked on MSDN and found that there is a WMI class ...
ifconfig's user avatar
  • 602
0 votes
0 answers
182 views

WmiPrvSE excess cpu on Windows 7 32bit [duplicate]

One of my desktops is running Windows 7 (32bit). I am seeing unexpectedly high CPU load for the WmiPrvSE process. Using ProcessExplorer, I can see that it is just one thread that is alternately ...
Kirk A's user avatar
  • 101
3 votes
1 answer
11k views

Remote connect to a Windows via PowerShell in Linux

I'm trying to connect to a Windows Machine via PowerShell in a Linux Machine to get some system's info, but I need to achieve it without use the WinRm. Firstly, I installed the PowerShell following ...
James's user avatar
  • 661