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
1answer
40 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 ...
0
votes
0answers
41 views

Kernel DMA Protection query

When running msinfo32 in Windows 10, the System Summary has a property item and value for Kernel DMA Protection. I've been asked to find a way to report on this property. My first idea is leveraging ...
0
votes
0answers
20 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 ...
0
votes
0answers
55 views

Win32_PerfFormattedData_PerfOS_Processor not available

I have the problem, that the WMI providers Win32_PerfFormattedData_PerfOS_Processor and Win32_PerfFormattedData_PerfProc_Process requests are not working at one of my systems. In C# test program it is ...
0
votes
1answer
56 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'...
0
votes
1answer
44 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 ...
1
vote
0answers
397 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 ...
0
votes
1answer
169 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 ...
0
votes
0answers
85 views

Enable Disabled domain accounts with powershell

I need to enable or disable account on active directory domain controller (Server 2012) through powershell wmi: I tried using command: wmic useraccount where "name='myusername'" set disabled=true It ...
1
vote
0answers
177 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 ...
0
votes
1answer
262 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 ...
0
votes
0answers
44 views

About get ManagementObject int ManagementObjectCollection by foreach is too slowly

I want to get port name, but When I change another product, the serial port name also changes. So I need Location Information or Address to get the port name, here the problem, it is too slowly to get ...
0
votes
0answers
82 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 ...
0
votes
0answers
160 views

WMI Query extremely slow

I'm trying to run a query that gets the windows service name corresponding to a process ID: SELECT * FROM Win32_Service where ProcessId = {myID} This query is expected to run for valid or invalid ...
1
vote
1answer
613 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 ...
2
votes
1answer
894 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/...
2
votes
1answer
109 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 ...
1
vote
0answers
438 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 ...
1
vote
0answers
348 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 ...
0
votes
1answer
328 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?
1
vote
0answers
533 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 ...
1
vote
2answers
7k 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 ...
3
votes
3answers
896 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 ...
1
vote
0answers
392 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 ...
2
votes
2answers
115 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?
0
votes
0answers
434 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: ...
1
vote
1answer
43 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,"",...
1
vote
2answers
2k 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, ...
0
votes
1answer
2k 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 ...
2
votes
2answers
793 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. ...
1
vote
1answer
972 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 '%...
0
votes
0answers
421 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: ...
6
votes
7answers
30k 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..
0
votes
1answer
850 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, ...
0
votes
2answers
561 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 ...
0
votes
1answer
991 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 ...
1
vote
0answers
179 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 ...
0
votes
1answer
1k 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:...
0
votes
1answer
236 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 ...
0
votes
0answers
140 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 ...
3
votes
1answer
7k 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 ...
1
vote
0answers
462 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 ...
0
votes
1answer
71 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
2
votes
1answer
2k views

What are and where are located WMI database Entries?

Using autoruns from sysinternals, I found a suspect row in the tab 'VMI' There is a Powerlog item, in the folder WMI Database Entries. I clicked with right, and "Jump to Entry". This opened my ...
0
votes
1answer
2k views

Windows 8.1: Tasklist: ERROR: Not found

When I run tasklist, I get this error. >tasklist ERROR: Not found >where tasklist C:\Windows\System32\tasklist.exe >tasklist /? TASKLIST [/S system [/U username [/P [password]]]] ...
3
votes
2answers
8k views

Can I turn off WMI service permanently?

I'm tired of seeing my laptop sporadically consume 100% disk usage and gigabytes of memory. Most of the time the problem is on "Windows Management Instrumentation" service. Beside disk I/O consumption,...
1
vote
2answers
102 views

Bad file association in WMI repository

Windows 7 machine, and as far as I know, the only oddness about the system is what I mention below. I deal with a whole lot of text files that have no extension, so a while back, I associated files ...
2
votes
1answer
10k views

Why is my monitor showing up as “Generic Non-PnP Monitor”?

This is a follow-up question to this one. I'm running Windows 7 on a desktop PC with an 27" AOC monitor. When I run the following wmic command to determine the model of my monitor: wmic ...
0
votes
1answer
606 views

WMI: Win32_DiskDrive (get memory mapped address), to Win32_DeviceMemoryAddress?

How can I get the memory mapped device address for a disk drive starting with a disk enumerated by PS C:\WINDOWS\system32> gwmi Win32_DiskDrive | fl * I can use PS C:\WINDOWS\system32> gwmi ...
1
vote
2answers
905 views

Get drive index using a batch file

I'm currently playing with VirtualBox and one of the things that annoy me with it is that you have to do such a workaround to get it to boot from USB. So I'm thinking of automating this with a batch ...