wmi Questions

14

Solved

Trying to use WMI to obtain a list of installed programs for Windows XP. Using wmic, I tried: wmic /output:c:\ProgramList.txt product get name,version and I get a listing of many of the installe...
Calcific asked 23/3, 2009 at 12:40

9

I wanted to automate setting the action Windows 7 takes when the lid is closed on my work laptop, as this is reset via GPO every time i login. I know that i can use the powercfg command in a batch...
Quadri asked 16/3, 2013 at 23:19

2

Using WMI VB scripting, I would like to create/attach multiple child processes to a parent process, such as the explorer process. When an app is started by clicking on it, it becomes a child proce...
Tally asked 5/12, 2008 at 15:24

2

Solved

A WQL query in WMI using the COM API returns a SWbemObjectSet. From this, we can use the ItemIndex method to iterate over all objects in the set, resulting in many SWbemObjects. These have a Proper...
Bamberg asked 4/12, 2013 at 21:55

11

Solved

How can I get the NetBIOS (aka 'short') domain name of the current computer from PowerShell? $ENV:USERDOMAIN displays the domain of the current user, but I want the domain that the current machine...
Theogony asked 27/4, 2011 at 0:43

6

Solved

I would like to use Get-WmiObject Win32_NetworkAdapterConfiguration to return the ip address of a network card. Unfortunately, I cannot figure out how to format the output to display only the IPv.4...
Disorganization asked 12/7, 2010 at 18:3

4

Solved

I would like to run WMI queries from Go. There are ways to call DLL functions from Go. My understanding is that there must be some DLL somewhere which, with the correct call, will return some data ...
Crossjack asked 4/12, 2013 at 1:44

3

Solved

Using Windows' WMI library, how can I eject CD rom mounted in a specific CD/DVD drive? I am asking for sources from WMI docs or examples since I am using wmi.py library on Python. It would be gr...
Bogey asked 4/7, 2010 at 10:13

4

Solved

I am trying to use Windows PowerShell 2.0 to find an installed application. I have tried two methods, one using WMI and one using the Registry. Both methods are able to bring up a large list of ins...
Arlinearlington asked 11/2, 2010 at 18:39

9

I would like to be able to set "Extend my Windows desktop onto this monitor" via code. A PowerShell script would be ideal. WMI seems the way forward but I have zero knowledge in WMI.
Mazman asked 8/11, 2008 at 19:11

2

I am in the process of writing a PowerShell script for backing up a Windows computer using rsync. To this end, I am attempting to use WMI from said script to create a non-persistent Shadow copy wit...
Hinder asked 11/7, 2013 at 19:2

5

I would monitoring the smart HDD-s on my Windows 7 clients. I would to get the HDD smart attributes without using any vbs file or ready-made tool just looking towards WMI or PowerShell. I would a...
Subtropical asked 31/3, 2014 at 9:56

2

I am trying to get to the bottom of a strange behavior on one machine. I have a trivial console application that will run interactively, but when I invoke it via WMI, it will start and exit immedia...
Plurality asked 31/1, 2015 at 14:5

4

Solved

I installed WMI code creator from here, and I'm wondering how we can use it to get the CPU temperature. The application gives many options (as shown below), but I am not sure where I have to click...
Denude asked 17/8, 2017 at 13:17

4

Solved

I like to know if there is any win32 class that can detect if a hard drive is eide or sata. Thanks in advance.
Campania asked 19/3, 2011 at 12:56

1

Solved

I've been trying to retrieve information about remote computers in our network via a WMI query. This works fine for all the info I need, I just don't seem to get the UserFriendlyName from the WmiMo...
Demonetize asked 26/1, 2021 at 16:35

1

The following line in PowerShell works (brightness changes to 30): (Get-WmiObject -Namespace root\wmi -Class WmiMonitorBrightnessMethods).WmiSetBrightness(0,30) However, when using WMIC I get the ...
Connaught asked 13/1, 2021 at 17:43

6

Solved

There are any advantages or disadvantages of using the WMI instead of Windows API to access to the information of the system? as speed, additional permissions, memory usage. or depends on the WMI ...
Decal asked 11/11, 2009 at 6:16

11

I am new to Python and I am trying to make a script that connects to a remote windows machine and execute commands there and test ports connectivity. Here is the code that I am writing but it is n...
Kimball asked 23/9, 2013 at 13:59

3

I am trying to retrieve the modification date of a file in a locale-independent manner, using the following wmic command: wmic DataFile WHERE Name="D:\\Data\\sample.txt" GET LastModified This wo...
Roma asked 12/5, 2016 at 21:58

1

Solved

For years I've been using the drive serial number to map virtualized guest disks to the hyper-visor disk. VMWare ESXi for instance will set the disk serial number to the UUID of the disk - allows f...
Blockbuster asked 27/2, 2019 at 15:10

1

Solved

I am trying to run a wmi query using System.Management in c# and keep getting invalid class. It is for wmware virtual desktops using the pcoip protocol. I can use WMI Explorer and it shows like bel...
Ellinger asked 4/9, 2020 at 19:56

5

Solved

I have a USB device that enumerates with a different interface, VID, PID and serial number when commanded to do so, and I'd like to keep track of the physical device after this change occurs. My th...
Wolfenbarger asked 20/6, 2011 at 20:15

2

Solved

I have a USB Hub of 10 USB slots connected to my USB Port. I want to get the USB device connected to the specific port. Example: Two USB's are connected at Slot 3 and Slot 7. So, I want a list whic...
Somali asked 29/5, 2017 at 6:58

3

Solved

To return the CPU usage by using WMI, do I return the PercentProcessorTime from Win32_PerfFormattedData_PerfOS_Processor? If not, which class should I look towards? Thanks.
Hearne asked 19/3, 2012 at 20:44

© 2022 - 2025 — McMap. All rights reserved.