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
91 votes
7 answers
301k views

Why does WMI Provider Host (WmiPrvSE.exe) keep spiking my CPU?

I generally keep my laptop on 24x7, and at the end of the day it's really annoying to have my thighs burnt because over overheating. The overheating seems to be a result of WMI Provider Host (...
Sathyajith Bhat's user avatar
  • 61.8k
14 votes
9 answers
101k 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
13 votes
2 answers
69k views

Why is my c:\windows\system32\wbem folder almost 100 GB and how do I reduce it?

The folder C:\Windows\System32\wbem\ takes up almost 100 GB on my SSD drive. This doesn't feel like an optimal utilization of my SSD drive. Can it be reduced? I've come across some references to "...
Simeon's user avatar
  • 133
10 votes
2 answers
9k views

Where does `powercfg` get battery health information, and why isn't it in WMI?

On Windows 10 (among other versions) running on a device having a battery, I can use powercfg /batteryreport to obtain the "Design Capacity" and "Last Full Charge Capacity" for the battery, which give ...
tgies's user avatar
  • 1,133
8 votes
3 answers
29k views

WMIC Path <what>? WMIC Class <what>?

There are all sorts of commands that WMIC accepts, such as WMIC Path Win32_Battery WMIC Path Win32_Processor WMIC Class Win32_Battery WMIC Class ComputerSystem et cetera. Is there any way to list ...
user541686's user avatar
  • 23.9k
7 votes
3 answers
6k 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
7 votes
5 answers
65k views

Repair WMI on Windows 7

I had a problem with my Microsoft SQL Server 2008, importing data and generating scripts, so I decided to uninstall it. When I tried to remove it, I got an error from the check screen. The WMI ...
Decker97's user avatar
  • 185
7 votes
3 answers
18k views

Is there a way to get access to a window handle in windows using WSH, or WMI or similar?

Is there a way to get access to a window handle in windows using WSH, or WMI or similar? I just want to flag a window as always-on-top. Ideally I'd use windows script host for this.
Jotham's user avatar
  • 478
7 votes
1 answer
2k views

Period character used for local computer name

I'm wondering about the period character . used as a shortcut for the local computer name. You can use it when logging into Windows 7, for example, to specify that the user account you're entering ...
rory.ap's user avatar
  • 496
7 votes
2 answers
3k views

Monitor hardware change events

I have a laptop that periodically notifies me that some piece of hardware was installed/removed by playing the little ba-dum sound. I have no idea what hardware is changing - I am not adding or ...
Goyuix's user avatar
  • 6,571
6 votes
1 answer
6k views

How to export WMI values to a file?

There is a way to export all the content off WMI from cmd interface to a txt file?
Diogo's user avatar
  • 30.5k
6 votes
0 answers
1k views

wmiprvse.exe does a lot of disk seeking activity once every day

wmiprvse.exe process does a lot of disk activity, working with all files in system32 directory (according to filemon). Any other process which wants to do smth with disk is very slow while wmiprvse....
osgx's user avatar
  • 6,847
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
  • 374
5 votes
1 answer
5k views

Is there a way to see current environment variables for a process with WMI?

I have a weird problem where something is changing my path in my login session. The permanent path in the registry is not changing. I wanted to monitor changes to the explorer.exe process's ...
Justin Dearing's user avatar
5 votes
1 answer
6k views

How to set printer permissions using PowerShell / some other script?

I need to update printer's permissions in a script, i.e. do the same as I would manually do this way: Open Devices and Printers applet Double-click the default printer (open its queue) Go to Printer -...
Borek Bernard's user avatar
4 votes
2 answers
10k 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
4 votes
3 answers
23k views

How to delete non-existing printers in Windows?

A few network printers have been removed from the print server and I wish to automatically remove them by a script (e.g. using objPrinter.delete_ in vbs) from any client still referencing them; ...
Hagen von Eitzen's user avatar
4 votes
3 answers
23k 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,...
Sake's user avatar
  • 141
4 votes
2 answers
6k views

WIN32_NetworkAdapterConfiguration does not report IP from PPP adapter

On a Windows 7 device, the following WMI query does not report back an enabled PPP adapter: Select Index,MACAddress,IPAddress,IPSubnet,DefaultIPGateway,DNSServerSearchOrder from ...
Michael's user avatar
  • 41
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
4 votes
0 answers
4k views

WMI-Activity Event ID5858, ResultCode = 0x80041032 & DCOM Event 10010 timeout errors

I've been trying to eliminate two types of errors for about a month now. First are WMI Event 5858 result code: 0x80041032 and the Second are DCOM Event 10010 server timeout errors. Read 100s of ...
Mes's user avatar
  • 41
4 votes
0 answers
10k views

WMI query fails with "A security package specific error occurred." Exception 80070721

Problem In Powershell after executing the following command ... Get-WmiObject Win32_ComputerSystem -Credential second.nl\administrator -ComputerName srv02.second.nl ... the following exception is ...
Charlie Vieillard's user avatar
3 votes
1 answer
8k 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
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
3 votes
2 answers
861 views

How can I get useful information from the Search Indexer perfomance counters?

I've been trying to figure out a way to get information on the indexing progress programmatically (how many files to go or "indexing complete"). I stumbled upon the class ...
Michał Masny's user avatar
3 votes
3 answers
6k views

access windows log files from linux

I'm trying to remotely access windows log files from linux. So far I've found two different approaches. Install syslog server on windows machine and let windows send log files to linux, read those ...
damir's user avatar
  • 205
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,546
3 votes
1 answer
668 views

Permission to query WMI

I have a project to remove admin rights from our users. An application we use, during upgrades, runs a query against WMI: Namespace: root\Microsoft\sqlserver\computermanagement10 Class: ...
lightwing's user avatar
3 votes
2 answers
4k views

Why am I not getting my logon session from a WMI query?

I'm writing a program one of whose functions is to get the current logon sessions on a Windows computer. It queries WMI for the current sessions with logon type 2 (interactive), logon type 10 (remote ...
Michał Masny's user avatar
3 votes
1 answer
5k views

How does Windows know which network adapter is a wireless device?

I'm trying and trying to find a value in the registry or through WMI (with wbemtest) which tells me that this network adapter uses a wireless connection. There are values in the WMI ...
seveves's user avatar
  • 183
3 votes
1 answer
1k views

Issues automating printer driver update (printer settings) and printer preferences in Win7, using a PS,cmd,vbs,etc script?

WMI can do it, but I have an issue, PCs are on, but logged off. If I try to run: wmic /node:%strIP% printer where DeviceID="lp1" set DriverName="Lexmark Universal v2" It fails with a message about a ...
user3377627's user avatar
3 votes
1 answer
1k views

Complex wmi queries using execquery

In powershell I can do a query like > get-wmiobject -query 'select * from win32_groupuser' | % {[wmi]$_.partcomponent|select domain,name,SID} Which will list for each wmi, the domain, name and ...
A G's user avatar
  • 583
3 votes
1 answer
2k views

How can I expose my fan speed, cpu temp, etc to WMI and/or SNMP? [duplicate]

Possible Duplicate: Collect temperature and fan speed with munin from Windows 7 PC? How can I expose my fan speed, cpu temp, etc to WMI and/or SNMP? Free solutions are preferred. On Windows XP/...
servermanfail's user avatar
2 votes
2 answers
1k 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 ...
Flaver-D's user avatar
  • 165
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.9k
2 votes
2 answers
408 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
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,730
2 votes
1 answer
625 views

Enabling DHCP via PowerShell results in 2 WiFi connections to same network

I have a VM on my network setup as a gateway that I use sometimes, while most of the time I just leave my PCs configured to use DHCP and just have everything go through the router. I had been swapping ...
Osirus's user avatar
  • 61
2 votes
2 answers
3k views

How to get Virtual Machine Maximum Memory using WMI?

On a Windows 2012 R2 virtual machine running under Hyper-V, Task Manager has the ability to display a virtual machine's maximum memory when the virtual machine is using dynamic memory, as shown in the ...
KeyszerS's user avatar
  • 248
2 votes
1 answer
4k views

Windows 7 (64 bit) SP1 stuck on welcome screen with wmi error

My desktop (Intel i5 @ 3.10 ghz, 8 gb ram, 1 gb nvidia graphics card, Dell s2240L full HD monitor) that runs Win 7 (64 bit) SP1 gets stuck on each startup on welcome screen after I enter the password. ...
Mandar's user avatar
  • 145
2 votes
2 answers
7k views

How to extend a logical volume using Powershell

On Windows XP SP3, how can I extend a volume using Powershell on a remote computer? I prefer WMI over Powershell remoting.
Primoz's user avatar
  • 155
2 votes
1 answer
6k 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 ...
realtebo's user avatar
  • 590
2 votes
1 answer
26k 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 ...
Hashim Aziz's user avatar
  • 12.8k
2 votes
1 answer
3k views

How to find a Bluetooth device's manufacturer

I am trying to get the Manufacturer information for any given Bluetooth device, such as this mouse: I have tried WMI, and the best I got was "Microsoft" I've searched through the registry, and the ...
David's user avatar
  • 168
2 votes
1 answer
2k views

Getting SID from win32_groupuser

I am trying to get the SIDs of users and groups by querying get-wmiobject -query 'select groupcomponent,partcomponent from win32_groupuser` output: __GENUS : 2 __CLASS : ...
A G's user avatar
  • 583
2 votes
1 answer
6k views

Powershell/WMI to map mounded drive device IDs to Volume Letter

Right now I am using these two WMI queries to get information about drives on a machine: get-wmiObject -Class Win32_LogicalDisk -Namespace root\CIMV2 -Computername $name get-wmiObject -Class ...
Abraxas's user avatar
  • 4,366
2 votes
2 answers
12k views

A timeout was reached while waiting for the Windows Management Instrumentation service to connect

Windows 7 SP1 with 4 GB RAM. This laptop is freezing about three times per week. The user regularly maxes out on RAM. Additionally, every day, the system generates about 500 of the following errors: ...
Steve's user avatar
  • 2,831
2 votes
1 answer
11k views

How to filter/pipe wmi output from batch or command prompt

I need to write a little script for a specific HDD. I use the following command to detect the HDD by size: C:\>wmic logicaldisk get size,freespace,caption | find "750153363456" E: ...
MrMAG's user avatar
  • 221
2 votes
1 answer
2k views

Nagios SSH remote checks and WMI Check

I have install Nagios Core and I am using WMI Checks for Windows and Created a script to execute remote commands through ssh on my Linux machines. When Installing Nagios there is an option to run ...
jenglee's user avatar
  • 45
2 votes
0 answers
392 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