wmi Questions

4

Solved

On my Windows 10 Pro 64-bit PC, when I go to WMI Control in Computer Management under "Services and Applications" and select "More Actions" -> Properties, it displays the fol...
Gossamer asked 5/10, 2021 at 14:6

15

Solved

I'm trying to get the physical memory size using PowerShell, but without using get-wmiobject. I have been using the following PS cmdlet to get the physical memory size, but the value changes with ...
Fleshings asked 16/7, 2013 at 15:50

2

I want to know via WMI or other means in c++ if the user has integrated or dedicated GPU card? I have gone over Win32_VideoController and could not find anything that will help me to differentiate...
Malebranche asked 10/4, 2016 at 7:21

10

Solved

I need to gather some system information for the application I'm developing. The memory available and the CPU load are easy to get using C#. Unfortunately, the CPU temperature it's not that easy. I...
County asked 28/7, 2009 at 16:3

4

Solved

In the Windows SDK there is a CLI tool named computerhardwareids The tool returns various GUIDs to select the proper HardwareId for the specific case. This is the output that returns this tool in...
Nightstick asked 7/8, 2014 at 19:44

3

Solved

I'm working on a script to get started in PowerShell. I'm trying to convert a working VBScript script that enumerates mapped network drives on a remote Windows computer. One of the tasks is to use...
Anthropogeography asked 4/5, 2009 at 20:0

5

Solved

I can use the following WMI query to determine any DNS servers my machine might be using: SELECT DNSServerSearchOrder FROM Win32_NetworkAdapterConfiguration However, the following query I wrote ...
wmi
Jablonski asked 29/5, 2013 at 2:11

13

Solved

I need to write a function that generates an id that is unique for a given machine running a Windows OS. Currently, I'm using WMI to query various hardware parameters and concatenate them together...
Entourage asked 19/9, 2008 at 5:30

5

Solved

I will like to find some result after this query, but in the beginning of the foreach loop, the error "invalid class" occur. string wmiQuery = string.Format("SELECT * FROM Win32_Process"); var sea...
Pedagogy asked 2/8, 2011 at 20:35

1

Solved

I'm trying to collect some registry values from remote server using StdRegProv class: Invoke-Command -ComputerName $ComputerHost -Credential $cred -ScriptBlock { Get-WmiObject -List -Namespace &quo...
Willettewilley asked 30/10, 2023 at 11:7

4

I have a list of all printers available in WinXP. I need the code (ideally .NET) to filter out all the virtual printers from this list. Is it possible to do? I analyzed all the properties of Win32_...
Erdmann asked 24/2, 2010 at 16:49

3

Solved

I need to get the Handle or the PID for all the process that are just being created while I run my program. So far I have used this code that tell me each time that a process is created. The proble...
Kizzee asked 31/7, 2015 at 19:11

6

Solved

I've seen articles in C# and some other languages that explain how to achieve what I'm looking for but I don't know how to convert them. The following link explains how to get the answer: How can ...
Asquint asked 17/5, 2012 at 10:57

2

I am currently developing a program to check if a USB device has been detected on a specific USB hub in C#. I know the PID and VID of both the hub and the slave device connected to the hub. I am do...
Liturgist asked 28/7, 2015 at 13:25

3

Solved

I need to get the list of installed softwares on remote Windows hosts using wmi calls. I have tried using Win32_Product and Win32Reg_AddRemovePrograms Classes. Advantage of using Win32_Product is ...
Overtask asked 5/8, 2014 at 4:51

7

Solved

I am using the following script to get screen resolution in Windows using WMI. The script works fine when the computer is in landscape mode but returns incorrect values when in portrait mode. Works...
Jongjongleur asked 1/11, 2011 at 14:8

6

Solved

I noticed that ManagementObject is IDisposable, but it's also returned from ManagementClass.GetInstances() and ManagementObjectSearcher.Get(), does this mean I need to dispose each object encounter...
Metsky asked 29/3, 2013 at 5:8

6

Solved

I am enumerating installed applications using WMI, and this block is taking a relatively long time to complete no matter how I structure it. It takes 13 seconds in my environment every time. Is the...
Dieppe asked 1/8, 2014 at 15:22

1

Solved

I tried to follow the example of WMI scripting (VBScript) to obtain several info from the current Windows OS, including the print job. Both are working successfully. ' My SampleCapturingPrint...
Glycerite asked 31/12, 2022 at 4:8

4

Solved

I'm trying to control Windows Services that are installed in a remote computer. I'm using the ServiceController class. I have this: ServiceController svc = new ServiceController("MyWindowsService...
Vanscoy asked 8/6, 2010 at 9:54

1

Solved

I am debugging some VBA code I've written in Excel 2016, and this sub is crashing Excel 2016 on windows Server with no errors. It is crashing on the Set RegObj = GetObject... Sub TestPrinter() On ...
Bohs asked 17/10, 2022 at 17:27

5

Solved

The following code produces the error: Error : 'CERas.CERAS' is a 'type', which is not valid in the given context Why does this error occur? using System.Drawing; using System.Linq; using Sy...
Carboy asked 17/2, 2010 at 7:16

1

I have developing a new WMI instance provider and I am having a bit of trouble. I am able to register my provider successfully using regsvr32.exe. The regsvr32 application calls my implementation o...
Cabman asked 14/5, 2020 at 2:54

3

Solved

I'm using the WMI Win32_NetworkAdapterConfiguration Class EnableDHCP Method to enable the DHCP service on a network adapter. I'm using XP Embedded with SP2 but it also happens on my desktop (XP SP3...
Alcoholic asked 12/8, 2009 at 14:35

6

Solved

When I look at the Win32_ComputerSystem class, it shows loads of properties like Status, PowerManagementCapabilities, etc. However, when in PowerShell I do the below I only get back a couple: PS C...
Vinna asked 31/8, 2011 at 15:10

© 2022 - 2024 — McMap. All rights reserved.