Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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

1
vote
0answers
23 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
24 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
5 views

How to create permanent WMI event consumer that displays message? [migrated]

I am trying to track the occurrence of specified Security events. I want a message to be displayed to the user whenever these events are logged in the Windows Security log. It was recommended that I ...
0
votes
0answers
27 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
22 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
57 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
0answers
89 views

External USB Drive runs continuously

My external USB drives on my Windows 10 Pro PC are running continuously (I hear click, click, click and the LEDs on the drives go on and off continuously), yet when I check their disk activity under ...
0
votes
1answer
492 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
240 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
273 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
236 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: ...
4
votes
4answers
4k 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
374 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
154 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
374 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 ...
0
votes
0answers
33 views

why wmic class gives wrong information?

I typed at my command line: wmic diskdrive get InterfaceType, Model I got the following: InterfaceType Model IDE TOSHIBA DT01ACA300 IDE Samsung SSD 850 EVO 250GB IDE ...
1
vote
0answers
109 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
0answers
128 views

Failed to complete Port ACL policy operation on port. Exceeds maximum number of ACL entries

From Windows Event Log: Source: Hyper-V-VmSwitch Error: Failed to complete Port ACL policy operation on port 42C1C0BA-BCDE-4741-9E57-C3EA0068B559 (Friendly Name: Dynamic Ethernet Switch Port) on ...
0
votes
1answer
464 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
81 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
53 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 ...
2
votes
1answer
2k 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
354 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
0answers
124 views

What does an “interface type” of “HDC” mean?

I need to use WMI from C# code to get a list of disk drives on a Windows machine. I want to restrict the results to only non-removable disk drives. For my own reasons, I want to use the ...
0
votes
1answer
42 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
377 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
675 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]]]] ...
0
votes
0answers
823 views

Disabling Windows Management Instrumentation Command-line (WMIC)

What are the steps to disabling WMIC on a windows 2003 server? I have tried looking into the services and only see Windows Management Instrumentation (WMI) listed. Also if disabled, what are ...
1
vote
0answers
1k 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
1answer
59 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 ...
1
vote
1answer
3k 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
359 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
391 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 ...
1
vote
0answers
184 views

Where are Win32_Product entries actually stored in Server2K12 or Win* variants?

What Windows database or data source does Win32_Product pull its information from, if not the registry? For example, if(Get-WmiObject -Class Win32_Product -Filter "Name like '%PRODUCT%'") { ...
1
vote
0answers
1k views

WMI query local administrators including group members

I know how to fetch a list of local administrators on a remote machine via WMI: wmic /Node:"ComputerName" path win32_groupuser where (groupcomponent="win32_group.name=\"administrators\",domain=\"...
0
votes
0answers
228 views

Why does Hyper-V virtualization depend on Windows Management Instrumentation?

In this experiment I disabled and deleted the Windows Management Instrumentation service in Windows 10 Pro 64bit. Do not try with your working PC. Here are the steps:: Set dependency to only Remote ...
0
votes
0answers
296 views

Disable a built-in microphone and webcam remotely

We have some laptops docked at certain places that my head people want disabled. I have used Get-WMIObject to pull the class Win32_PnpEntity and used the Devcon utility to disable the "internal ...
1
vote
2answers
514 views

What's difference between `Dism /Capture-Image` and `recimg -CreateImage` on Windows 8.1?

I'm trying to make sense of wimboot vs refresh. Can someone give a short answer to the following? What's the difference between Dism /Capture-Image and recimg -CreateImage They both produce .wim ...
1
vote
1answer
177 views

WMI Host Provider Credentials

Numerous times per hour, a user on the a domain is getting locked out by WmiPrvSE.exe. Digging into the Event Log on the server that is locking out the user, it shows that WmiPrvSE.exe is using ...
3
votes
0answers
2k 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 ...
0
votes
1answer
336 views

How to find the BIOS serial number on Windows 98?

In Windows 10 I can use WMI, but it seems that Microsoft has removed this download from their website which supports Windows 98. I need to use it for a legacy project. Any ideas, or other tool ...
0
votes
1answer
628 views

WMIC Query returning unexpected answer?

Apologies if this seems like a noob question...but I can't figure this out for the life of me. I'm using WQL to query WMI for the Dell BIOS version in a task sequence in SCCM. That WQL Query is below: ...
0
votes
1answer
147 views

How to debug failed WMI logins

I can connect to the target machine using wbemtest, but when I try connecting using an application based on J-Interop with the same credentials, the connection fails. I'm trying to figure out why. I ...
0
votes
0answers
339 views

E_ACCESSDENIED accessing WMI from scheduled task

In Powershell, I'm enumerating SQL databases as follows: $SqlServers = @("SQL1", "SQL2") # SQL servers foreach ($SqlServer in $SqlServers) { $SqlBasePath = "SQLSERVER:\SQL\$SqlServer\" foreach ($...
0
votes
0answers
426 views

Importing WMIC txt into csv or xlsx

I have a logon script that logs several pieces of information and does it for a per device basis and then pipes it to a txt with the file name Computer-Name-report.txt The company has hundreds of ...
1
vote
0answers
428 views

Get-WmiObject throws “Invalid access to memory location.”

I'm trying to run the following PowerShell command under WinPE (Version 10.0.10586.0): Get-WmiObject -Class Win32_ComputerSystem But I get this error: Get-WmiObject : Invalid access to memory ...
1
vote
0answers
289 views

How to simulate or restore corrupted WMI (Windows Management Instrumentation)

After fixing a crash that was related to a corrupted WMI, I would like to validate my solution. The problem is, that I meanwhile rebuild the corrupted WMI using https://stackoverflow.com/a/6930421/...
0
votes
1answer
796 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 ...
3
votes
1answer
347 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 ...
4
votes
1answer
206 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: ...