2022 Developer Survey is open! Take survey.

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
2 votes
0 answers
17 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 ...
user avatar
0 votes
0 answers
28 views

WMI query impact

I'm using a WMI query in a C# application to monitor some specific services variations every 5 seconds on two hosts - one host is where the application is actually running, the other is a host in the ...
user avatar
  • 389
0 votes
0 answers
109 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 ...
user avatar
  • 1
1 vote
1 answer
44 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 ...
user avatar
  • 11
0 votes
1 answer
187 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 ...
user avatar
-1 votes
1 answer
40 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 ...
user avatar
1 vote
1 answer
150 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]....
user avatar
  • 111
1 vote
2 answers
5k 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 ...
user avatar
  • 177
1 vote
0 answers
60 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 ...
user avatar
  • 961
1 vote
1 answer
1k 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 ...
user avatar
5 votes
3 answers
2k 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 "...
user avatar
  • 302
0 votes
1 answer
36 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 ...
user avatar
0 votes
1 answer
84 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 ...
user avatar
  • 101
1 vote
0 answers
128 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 ...
user avatar
  • 241
0 votes
1 answer
360 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'...
user avatar
  • 33
0 votes
1 answer
238 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 ...
user avatar
1 vote
0 answers
852 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 ...
user avatar
  • 178
0 votes
1 answer
1k 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 ...
user avatar
  • 519
1 vote
0 answers
573 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 ...
user avatar
  • 11
0 votes
1 answer
673 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 ...
user avatar
0 votes
0 answers
342 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 ...
user avatar
  • 125
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 ...
user avatar
  • 245
2 votes
1 answer
4k 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/...
user avatar
  • 245
2 votes
1 answer
175 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 ...
user avatar
  • 1,462
2 votes
0 answers
1k 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 ...
user avatar
  • 1,462
3 votes
0 answers
641 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 ...
user avatar
  • 31
1 vote
1 answer
1k 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?
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 ...
user avatar
1 vote
2 answers
12k 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 ...
user avatar
3 votes
3 answers
2k 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 ...
user avatar
  • 5,147
1 vote
0 answers
912 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 ...
user avatar
2 votes
2 answers
249 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?
user avatar
0 votes
0 answers
757 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: ...
user avatar
  • 1
1 vote
1 answer
74 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,"",...
user avatar
  • 185
2 votes
2 answers
6k 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, ...
user avatar
  • 251
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 ...
user avatar
2 votes
2 answers
1k 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. ...
user avatar
  • 3,432
1 vote
1 answer
1k 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 '%...
user avatar
  • 459
0 votes
0 answers
480 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: ...
user avatar
  • 809
12 votes
7 answers
81k 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..
user avatar
  • 121
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, ...
user avatar
0 votes
2 answers
903 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 ...
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 ...
user avatar
1 vote
0 answers
245 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 ...
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:...
user avatar
  • 131
0 votes
1 answer
358 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 ...
user avatar
  • 562
0 votes
0 answers
179 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 ...
user avatar
  • 101
3 votes
1 answer
10k 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 ...
user avatar
  • 661
1 vote
0 answers
549 views

How to get last Windows update date of Server 2016 and Server 2012 R2 remotely?

I am attempting to automatically check the date Windows Updates were last installed on a Windows Server 2012 machine and a Server 2016 machine from a remote machine. I can't seem to find any ...
user avatar
0 votes
1 answer
113 views

Setting an application height and width using WMI

Is it possible to set an application's height and width using WMI? If so, how? For example, change the height and width of Notepad. Thanks
user avatar
  • 187