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
21 views

Accessing underlying object of SWbemObject instance [duplicate]

I'm using vbscript to interact with the WMI classes. I am querying the Win32_GroupUser class which is defined here https://msdn.microsoft.com/en-us/library/windows/desktop/aa394153%28v=vs.85%29.aspx. ...
3
votes
0answers
37 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 ...
3
votes
1answer
58 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 : ...
0
votes
0answers
5 views

Unable to Register Permanent Event - Strange Behaviour

I am trying to register a permanent event on a Windows 7 machine using a .MOF file and WMI. The first issue I am having is that when I run mofcomp myfile.mof in cmd the file can never be found ...
1
vote
1answer
29 views

WMI Call to retrieve Physical Serial Number on HDD's

I'm trying to write a script that incorporates a retrieved Drive Serial Number for a report. So far I've just been trying to get a WMI call or really anything to even retrieve it in the first place ...
1
vote
1answer
24 views

wmic command returns no instance when accessing Win32_BaseBoard class

Why does Win32_BaseBoard return no instances in PowerShell? wmic path "Win32_BaseBoard" get "Model"
0
votes
0answers
51 views

How to get WMI (Windows Management Instrumentation) information From Linux (Debian)

Step 1: I installed many packages such as wmi-client_1.3.14-3_amd64, libwmiclient1_1.3.14-3_amd64, ... to make my linux as wmi-client. Step 2: WMI with Linux. root@MRT:/home/mohammad/Desktop# wmic ...
0
votes
0answers
35 views

How to get laptop docking station serial number programmatically?

Is there are a way to get laptop docking station serial number programmatically? I assume it should be accessible via WMI, specifically via Win32_SystemEnclosure class but unable to come up with ...
1
vote
0answers
20 views

WMI, VMWare: Wrong ChassisTypes from Win32_SystemEnclosure

On Windows 7 installation on VMWare, following WMI query: Select ChassisTypes from Win32_SystemEnclosure is returning 1 (Other), and not expected value 3 (Desktop). It returns correct type on ...
0
votes
1answer
47 views

PowerShell WMI function call with multiple variable [closed]

I want to call a WMI method which is taking one string as input , one integer as input and one integer as output. Here is the Current Example: $obj=Get-WmiObject -class "class1" -namespace "space1" ...
0
votes
0answers
26 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
85 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
104 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
46 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
144 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
21 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
57 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
337 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
446 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
37 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
311 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
60 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
259 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
1k 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
148 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
155 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
94 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
884 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
118 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
355 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
37 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
165 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
170 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
42 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
277 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
44 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
108 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
132 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
391 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
238 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
344 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
102 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
527 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
121 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
796 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
401 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
163 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
714 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 ...