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).

178 questions
92
votes
7 answers

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 (WmiPrvSE.exe) spiking the CPU utilization to 25% every…
14
votes
9 answers

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
  • 141
13
votes
2 answers

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 "rebuilding your WMI repository" that seemed related…
Simeon
  • 133
11
votes
2 answers

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 an idea of the remaining useful service life of…
tgies
  • 1,153
  • 1
  • 10
  • 22
8
votes
3 answers

WMIC Path ? WMIC Class ?

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 all of these potential "path"s and "class"es, etc.…
user541686
  • 23,629
7
votes
1 answer

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 belongs to the local computer rather than to a…
rory.ap
  • 514
  • 2
  • 8
  • 19
7
votes
3 answers

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
  • 498
7
votes
2 answers

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 removing any devices. Is there a piece of software or…
Goyuix
  • 6,607
7
votes
5 answers

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 service is corrupted, so I need a way to reset the WMI…
Decker97
  • 185
7
votes
3 answers

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: >>…
6
votes
1 answer

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
  • 30,792
6
votes
0 answers

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.exe scans system32. Such scans are every day and…
osgx
  • 7,017
5
votes
1 answer

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 environment variables using Register-CimIndicationEvent…
5
votes
1 answer

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 -> Properties In the properties dialog, go to…
Borek Bernard
  • 15,019
5
votes
3 answers

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 "Samsung" The filtered result is empty, the unfiltered result is as…
Soleil
  • 428
1
2 3
11 12