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

learn more… | top users | synonyms

0
votes
0answers
15 views

WMI performance monitors not available

On a Windows Server 2008 R2 Datacenter (Service Pack) I am trying to query the following counters, but getting the error 'Invalid Query' in wbemtest.exe Win32_PerfRawData_PerfOS_Memory ...
1
vote
1answer
23 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 ...
3
votes
2answers
74 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 ...
0
votes
0answers
25 views

WMI Issues when installing SQL 2014 (The specified module could not be found)

I am trying to install SQL 2014 on my Window 10 laptop and during rule checking I receive the following error: When I check for the Windows Management Instrumentation service on my laptop I find ...
2
votes
1answer
98 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; ...
0
votes
0answers
16 views

Execute a WMI alert on startup

I would like to know which WMI query (EventFilter) I can write, intrinsic or extrinsic and which class, to be warned of the boot of a computer. Should I 'monitor' for a specific started exe like ...
0
votes
0answers
41 views

How to make program show up on a designated virtual display in Windows 10

So as some of you surely know, in Linux you can open a program directly on a specific display by exporting a variable export DISPLAY=:0.0 and then starting a program. Since Windows 10 also ...
3
votes
0answers
133 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 ...
0
votes
1answer
252 views

Why the “create restore point” script work differently on Windows 7 and on Windows 10/8.1

From a how-to-geek article, I get a script like this: strDesc = "Restore Point by script" Set oArgs = WScript.Arguments If oArgs.Count > 0 Then strDesc = oArgs(0) WScript.Echo "Creating Restore ...
0
votes
0answers
29 views

Windows hangs with some features, and applications

I purchased this DELL Optiplex 9020 Desktop PC in last January running Windows 7 Pro 64Bit . Ever since I bought it, Sometimes, it just freezes while taking some applications or functions. This ...
2
votes
1answer
147 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 ...
1
vote
0answers
35 views

How to keep display aspect ratio and display scaling using wmi?

I have Intel HD Graphics 4400 here and I am using the Intel Control tool to set "keep aspect ratio" or "keep display scaling" ("Displayskalierung beibehalten"). Is there a way to achieve this by WMI? ...
0
votes
0answers
207 views

WMI “No Instances Available”

I am trying to query WMI to get the serial number of a remote PC, but I get an error: C:\WINDOWS\system32>winrs -r:253506a wmic csproduct list No Instance(s) Available. Other WMIC commands work. ...
0
votes
1answer
966 views

Installing JDK on Windows 10 - MsiEnumProducts error 1610 due to broken WBEM library/WMI library

I failing on installing JDK 8 on an x64 Windows 10 installation or updating from any older version to the up-to-date version. After the usual Java Update failed with no error message whatsoever, I ...
0
votes
0answers
107 views

Cannot install SQL Server 2008 R2 express. Compiler returned error 0x8007005

First off, I'm having a very similar issue to this StackOverflow post here: http://stackoverflow.com/questions/31681386/sql-server-configuration-manager-wont-start-wmi-returns-error# Installing SQL ...
1
vote
1answer
105 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 ...
0
votes
0answers
81 views

Microsoft Diagnostic Tool via C# remotely

I need an efficient way to execute the Microsoft Diagnostic Tool Troubleshooting Pack via C# on a remote machine. The criteria for the Troubleshooter is: Run elevated (admin). Run silent. Run ...
2
votes
2answers
550 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: ...
1
vote
1answer
88 views

Network Connection State on BgInfo

Is there a vbs script or WBI that will show the status of a network adapter such as 'Disconnected', "Connected", 'Authenticating', etc in BgInfo? Thank you in advance.
1
vote
0answers
269 views

“Microsoft Excel is waiting for another application to complete an OLE action” interrupting VBA code

I've got an Excel workbook that is running some VBA code, which I use every day. During execution, it keeps hanging on a dialog box saying "Microsoft Excel is waiting for another application to ...
1
vote
1answer
34 views

What are the minimum requirements of a WMI class?

I was implementing a query to the WMI class "Win32_OperatingSystem" namespace with "root\CIMV2" I tested my code in Windows 10, Windows 8.1, and Windows XP SP3 and everyone worked well. However in ...
0
votes
0answers
141 views

MySql Remote. WMI connection setup does not work?

Hello i want to do a remote server on mysql that is on my computer soo i can connect to it outside network but i have a problem that i cannot solve my self. PROBLEM When i enter my windows 8 login ...
0
votes
1answer
133 views

Mysql remote server with rights to WMI

I just fixed and got my MySQL running on my computer on port forwarded with all the grants. However, when I am enabling remote server Windows asks for user login information for WMI I need to enter ...
0
votes
2answers
39 views

Prefixing output text in batch

I am trying to create a remote, WMI query script that will query a bunch of machines and tell me the MemoryChip configuration information. This way, we can find out what machines physically have 1 ...
2
votes
1answer
226 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 ...
0
votes
1answer
42 views

Windows XP PCs shut down using WMI command require mouse/keyboard input before completing shutdown

We use the WMI service to shut down PCs in our office remotely. This works perfectly for our Windows 7 systems but we are finding that our Windows XP PCs get stuck in a "Shutting down" state ...
0
votes
0answers
82 views

I want to keep track of registry changes in a windows based system [closed]

I have been searching and searching the internet on how to track changes made to the registry through program. I want to develop a solution in which I specifically need to track changes happened to ...
0
votes
0answers
107 views

External Hard Drive with no WMI info

Had some software crash for a user because it expected TotalSectors from WMI to be present for all Win32_DiskDrive's. The powershell output for it is below. I asked the user if there was something ...
6
votes
1answer
319 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 ...
1
vote
1answer
193 views

WmiEvent for any usb device

I am following this answer, which contains Register-WmiEvent -Class win32_VolumeChangeEvent -SourceIdentifier volumeChange and $newEvent = Wait-Event -SourceIdentifier volumeChange This works ...
0
votes
0answers
290 views

Detect touch hardware using VBScript

I am looking for a way to detect installed touch hardware using VBScript. My script doesn't work. This script is intended to look for a pointing device and echo accordingly. On Error Resume ...
0
votes
0answers
94 views

Group policy WMI Logon Server

I'm trying to setup a GP to do tasks if in a certain location, I believe the best way in doing this is a WMI filter. Could someone help me out? I've never used this part of GP before. Was looking ...
0
votes
1answer
502 views

Unable to install Windows product key - error 0x80041015

I decided to install a proper product key for my Windows 8.1. I tried the PC Settings applet, but it refused to accept my key. I tried using slmgr /ipk ...., but got error WBEM_E_TRANSPORT_FAILURE ...
0
votes
2answers
112 views

WMI StartService Parameter

I'm currently using WMI to start a service, which is nice. But additionally, I would like to send a start-up parameter to this service. Is there anyway to do this using WMI? I couldn't find anything ...
0
votes
0answers
685 views

Remotely use a local account to unlock another local account

So I have had an interesting problem pop up. I am trying to make someones life easier by making a script to help reset local accounts on windows 7 machines. Ideally, we'd like to do it remotely, so ...
0
votes
2answers
366 views

Loading drivers after OS boot takes a long time

My windows 7 x64 build boots fairly quickly (20s). It's a lab PC with very little installed. After seeing the desktop, launching applications that load a custom driver (several different ones) take ...
0
votes
0answers
147 views

Terminate/Kill a process before entering Standby

We have a MSAccess based solution that is running on customers computers and is lauchend through a VBScript-script. Due to the network enviroment here, we KNOW that in most of the cases the ...
1
vote
1answer
3k 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. ...
2
votes
1answer
1k views

need command line to test duplex status on windows NIC cards

this woud be for windows 7 I tried the following powershell command get-wmiobject Win32_NetworkAdapter | foreach-object { get-wmiobject -namespace root/WMI -class MSNdis_macOptions -filter ...
0
votes
1answer
587 views

WMI Query based on antecedent string

I am trying to map PHYSICAL Disks to mounted partitions and even further into mounted volume letters (C:\ is mounted on partition 0 of disk 0) First I'm using Select * from Win32_DiskDrive to ...
0
votes
1answer
62 views

How to check ClearType status through WMI/CIM

So I wanted to know if anyone knows if it is even possible to check the status of ClearType on a windows pc using WMI or CIM and if so, which subcategory I would have to look in? All I have been able ...
1
vote
2answers
1k views

'SELECT' is not recognized as an internal or external command

I'm trying to apply a wmi filter to a group policy using this command: Select * from Win32_Processor where AddressWidth = '64' This will only apply the GPO to 64 bit machines (all of our machines ...
1
vote
1answer
726 views

Numerous errors when initializing stuff, explorer.exe's Server execution failed" error, and more - advice needed

Recently I've started experiencing a very bad OS behavior: Something is messed up with the windows' queue managing or communication, here is what I'm experiencing: opening a link to a folder -> ...
0
votes
1answer
2k 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: ...
0
votes
1answer
426 views

How can I query WMI to know the name of the user that started a service?

I used several WMI queries in Windows8.1x64 on wbemtest.exe to attempt finding out which user started a particular service. The ones that got me "this far" are presented here. I know that if I query ...
0
votes
1answer
941 views

How can i get proxy settings with wmi?

I try this in cmd wmic path win32_proxy, but get ERROR: Description = Invalid class OS: Windows 7 64bit Am I doing this right?
1
vote
0answers
440 views

“Access Denied 0x80070005” when connecting remotely via WMI using local administrator account

I'm working on a solution, where I want to rejoin a computer remotely to the domain if the domain trust is lost or for any other reason. In order to achieve this, I need to let WMI through the ...
7
votes
1answer
23k 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 ...
1
vote
0answers
204 views

What values will the WMI Win32_DiskDrive call provide when PC is using hybrid drive?

When I call the Get-WMIOBject Win32_DiskDrive call I get the following response for a regular drive: Partitions : 5 DeviceID : \.\PHYSICALDRIVE0 Model : C400-MTFDDAT128MAM Size : 128034708480 Caption ...
0
votes
1answer
354 views

Query type of video card connections (HDMI/VGA/DVI/ETC)

I need to find a way to query types of video connections available on a large list of machines. I wasn't able to find a property within the following WMI classes: Win32_VideoController ...