Click here to Skip to main content
15,901,122 members
Everything / WMI

WMI

WMI

Great Reads

by Mark Kruger
Visual Studio loader with arguments
by Kai Schtrom
Win32_NetworkAdapterConfiguration WMI class in plain C and C++
by awilson9010
Working with Windows BCD store in Powershell
by Rene Pally
The purpose of this article is to show how to capture the WMI queries sent to the system in plain text using assembler and a powerful debugger.

Latest Articles

by Bruno van Dooren
How to clean up user profiles on a computer
by Kai Schtrom
Win32_NetworkAdapterConfiguration WMI class in plain C and C++
by awilson9010
Working with Windows BCD store in Powershell
by Mark Kruger
Visual Studio loader with arguments

All Articles

Sort by Updated

WMI 

18 Mar 2024 by Dave Kreskowiak
Simple. Windows Security considers most command lines a security risk to be seen by normal users. No, there is nothing you can do about it. Normal users can see the command lines for processes they launch themselves, but not for System, Local...
18 Mar 2024 by Saumya Chattopadhyay
Hello Fellas, I have created a non-admin user, and trying to get details of Win32_Process but i'm either not getting any value or incorrect value for commandLine argument. I followed below steps to create the non-admin user and to give...
9 Jan 2024 by Maxim Kartavenkov
You should specify on what language you want to implement it. In .NET it's more easy to make: you should declare class with fields which you planning to pass as an event arguments. The class should have fields only and have class attribute...
3 Jan 2024 by Member 16008221
Hi, Can you please provide steps to create a WMI provider. I have to develop a WMI provider to get details of devices connected with my machine. I need details like, can I create WMI provider as visual studio console application? I have red COM...
13 Jul 2023 by AstroTheDog
Hello there, I am trying to get ram, cpu and disk data from windows server 2012 with a sample code like below; private static void Main(string[] args) { //can you add try catch to this code try { ...
13 Jul 2023 by Dave Kreskowiak
It's telling you the namespace "virtualization\V2" doesn't exist on the machine. You don't have the Hyper-V WMI provider subsystem installed. Go into "Turn Windows Features on or off" to see what you're missing under Hyper-V.
15 Mar 2023 by Abishek Samuel
Just out of Curiosity also I couldn't find the answers to this anywhere, I am learning Managed Service Account in Active Directory ,where i need to access it using WMI wbemtest tool. Is there any special permission to be given to the MSA account...
9 Mar 2023 by Bruno van Dooren
How to clean up user profiles on a computer
13 Apr 2022 by Tom6012
Hi,Follow Win32_printer class, is able to view printer status and delete printer as well.Try to use similar way to set workoffline property. The value can be set, but the printer can't change its status as offline. ManagementScope managementScope = new...
13 Apr 2022 by Chris Stone 2022
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Management; namespace PrinterInfo { class Program { static void Main(string[] args) { string printerName =...
5 Feb 2022 by John Bon Jovy
I'm looking for a way to get a Core Effective Frequency without access to SMU or using APIs. According to AMD: Core Effective Frequency (without halted cycles) over the sampling period, reported in GHz. The metric is based on APERF and MPERF...
19 Dec 2021 by 0x01AA
ISensor supports a property SensorType SensorType which is defined in ISensor like this: public enum SensorType { Voltage, // V Current, // A Power, // W Clock, // MHz Temperature, // °C ...
19 Dec 2021 by John Bon Jovy
For my C# .Net Framework project I need to get 5 values: 1) CPU Load 2) CPU Temp 3) Current Voltage 4) VID Voltage 5) Current Frequency After doing some research, I figured that the best way to obtain those values would be to use...
18 Dec 2021 by Kai Schtrom
Win32_NetworkAdapterConfiguration WMI class in plain C and C++
25 May 2021 by sumitk.cadc
Hi All, I am using Fetching Application event log, System event logs under the "Windows Log" using WMI QUERY as below Select * From Win32_NTLogEvent Where Logfile ='Application' now i want to fetch the logs which are maintaining under the "Applications and Services Logs" but using this...
25 May 2021 by JohnnyC
First you need to add an entry to the Registry for the log from the "Applications and Services Logs" that you want before you can access it using WMI. These newer logs are not listed in the Registry by default and WMI checks the registry for...
15 Dec 2020 by ala deli
i am trying to vendor specifc attribute from this WMI class MSStorageDriver_FailurePredictData(HDD SMART information). Here is the used code :IEnumWbemClassObject* pEnumerator = NULL; hres = pSvc->ExecQuery( L"WQL", L"SELECT * FROM MSStorageDriver_FailurePredictData", ...
1 Nov 2020 by awilson9010
Working with Windows BCD store in Powershell
24 Jun 2020 by Dave Kreskowiak
Couldn't tell you what you're missing. There's nothing that stands out as wrong with the code you posted. EF is writing 125 records because your code is giving it 125 objects to write. You're going to have to step through the code,...
24 Jun 2020 by Tshumore
I have a utility that reads the status of MicrosoftBizTalk Server resources .. specifically the ReceiveLocation component. My problem is that the program is submitting multiple entries of each item i.e each item in the data returned is being...
18 Jun 2020 by OriginalGriff
Start by using the debugger to find out what is in the Query and server variables. You don't show the definition of server and that could easily generate the problem. THen check that Certificates are installed - if they aren't then...
18 Jun 2020 by Tshumore
I have a program that will query for the state of BizTalk resources, specifically the ReceiveLocations component. When i run the sample program obtained from C:\Program Files (x86)\Microsoft BizTalk Server 2013 R2\SDK\Samples\Admin\WMI\Enumerate...
1 Jun 2020 by Tshumore
I have a working program that retrieves information of disk such as FreeSpace, TotalSpace etc from a remote server. I have a problem however that i cannot get these stattistics for all Clustered Disks mapped on onto the server. Th query only...
13 May 2020 by Brauschi
I have the following code: ManagementClass ObjManagementClassRegistry = new ManagementClass(_objPublicManagementScope, new ManagementPath("StdRegProv"), null); ManagementBaseObject inParams =...
13 May 2020 by Brauschi
string strComputer = "ComputerName"; string strUser = "UserName"; string strPassword = "UserPassword"; string strDomain = "DomainName"; SecureString securepassword = new SecureString(); ...
25 Sep 2019 by Richard MacCutchan
You already posted this question at https://www.codeproject.com/Questions/5246780/Use-WMI-to-connect-remote-machine-and-execute-batc[^]. Please do not repost. If you have additional information to add then pleased edit the original question.
21 Jul 2019 by YvesDaoust
I have a piece of code that worked seamlessly until now. It uses the Windows Management Instrumentation API. I have not changed the code nor anything in my machine (as far as I know), but now when the code is run under the Visual Studio debugger (either 2008 or 2003), it raises an exception,...
29 Apr 2019 by Richard MacCutchan
See Power shell commands returning the improper user name format[^]. Are you the same person that posted the reference question?
29 Apr 2019 by vijayalakshmi dasari
Hi, We have executed the below query from the C# code when logged in with a Microsoft account on Windows 8.1 PC. Quote: (get-wmiobject Win32_ComputerSystem –ComputerName "").UserName We have received the below Answer. Quote: Lenovo-Pc/user.@outlook.com> But, our user in the...
28 Nov 2018 by User 14026908
Recently we started using new Resilient Change Tracking (RCT 2016) APIs. We are facing issue with QueryChangesVirtualDisk API. We are following steps as mentioned in MSDN. Anyone has any suggestions if it is working for them? PCWSTR changeTrackingId =...
2 Nov 2018 by EskeRahn
The reason is that this call internally uses the old AT protocol (that is NT-style, like the old AT command), and not those created in say the Task Scheduler. see e.g. [^] But the obvious question on how we get to all the rest, on Win8/WinSrv2012 and beyond remotely I unfortunately does not...
2 Nov 2018 by sumitk.cadc
hi all i am using below code to fetch the All Task Schedule in window 7 ManagementScope scope = new ManagementScope("\\\\.\\ROOT\\cimv2"); string query = "SELECT * FROM Win32_ScheduledJob"; ManagementObjectSearcher searchCom; ManagementObjectCollection...
24 Oct 2018 by Mark Kruger
Visual Studio loader with arguments
15 Oct 2018 by Dave Kreskowiak
Services run under a different desktop from the one the user is logged in on. If you want code to cross the boundary between desktops, yes, you need admin permissions to do that. You can see this yourself quite easily. Open Task Manager as a normal user. On the Processes tab, all you see are...
12 Oct 2018 by manikandanid
We have a windows service which is running under a account that is not part of local admin. With in the service we call a powershell file using processstartinfo. With in powershell file we call the WMI class "$AVGCPU = Get-WmiObject win32_processor | Measure-Object -property LoadPercentage...
13 Sep 2018 by Elaay
Hello, I've copied some code sniplets and build a small software to: 1. Query all existiing Computers in Domain 2. Query each Computer in the list if a defined user is logged in on this computer 3. Fill Listbox1 with all computers where this user is logged in But as you know, querying remote...
13 Sep 2018 by Richard Deeming
Assuming you don't care about the order of items in listBox1, some async / await magic might help: private async void button1_Click(object sender, EventArgs e) { button1.Enabled = false; try { searchUser = textBox1.Text; // Get the list of servers to search:...
22 Aug 2018 by Hazel J Chua
@Jochen Arndt, Tried changing the query to use MSSerial_PortName and all I got was an error in the query with no results returned. After some reading the following query did work: strComputer = "." Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\CIMV2") Set colItems =...
22 Aug 2018 by Hazel J Chua
Hi there, I'm trying to query the WMI for serial port connections (COM ports). I can see the ports on the Device Manager but when trying to query them through WMI (Win32_SerialPort), nothing shows up. I am able to connect to one of the ports (COM7) via the HyperTerminal. It is a GSM/GPRS...
22 Aug 2018 by Jochen Arndt
The Win32\_SerialPort class | Microsoft Docs[^] lists only physical serial ports and not virtual ones provided by device drivers. One solution is to use the MSSerial_PortName class in the \root\WMI namespace. See also List of SerialPorts queried using WMI differs from devicemanager? - Stack...
8 Aug 2018 by sauravbanthia
We are making a video protection software where only one person can view the video on its laptop provided he has the password. Some people are trying to by pass this by using vga cable and connecting it to a bigger monitor so that many people may view it together. I just want to stop this. My...
8 Aug 2018 by Richard MacCutchan
See Child Devices of the Display Adapter | Microsoft Docs[^]. As it states in the first paragraph, external devices are not included in the list of child monitors, so there is no easy way to get the answer. If you look at the following discussions you can see that it is far from easy to find out...
7 Aug 2018 by Aaron Manning
G'Day All,I have been trying to get the EnableStatic function to work with Multiple IP's/Netmasks and am having trouble. At NO point do I get any errors to any of the function calls, but none of my passed IP/Netmask pairs are actually being programmed. Hoping someone on here might have an...
7 Aug 2018 by kj_easy_DN
Good to know: a) run this code as administrator, otherwise hRes returns OK, but the "retValue" (pOutInst in the example above) returned as output parameter will indicate an error. b) to get retValue, use these additional lines of code can help: // existing code from above IWbemClassObject *...
6 Aug 2018 by Patrice T
Quote: Some people are trying to by pass this by using vga cable and connecting it to a bigger monitor so that many people may view it together. I just want to stop this. It is hopeless. Just a second PC and a webcam an your protection is done. Other software can record the video you play if...
21 Jul 2018 by Dave Kreskowiak
Memory and Handle Quotas in the WMI Provider Service | Ask the Performance Team Blog[^]
21 Jul 2018 by Member 13906075
I have a wmi query to monitor file system changes. Select * from __InstanceOperationEvent within 5 where TargetInstance isa 'CIM_LogicalFile' It shows an error when run in wbemtest call quota violation. Can any one help me with how to remove the quota violation error. What I have tried: ...
6 Jul 2018 by Member 13901685
Win32 Classes in Windows OS are groups of Hardware, Software or OS classes (along with others) that contains features and attributes depending on the class selected. My problem is with the Win32_CDROMDrive that has many properties of the connected ODD device like Caption, Description, Drive, Id,...
6 Jul 2018 by Dave Kreskowiak
You're making the mistake of assuming that information is actually there. The problem is WMI makes no requirements of manufacturer to provide the data in every property in every WMI class. If the serial number property returns null, it's just not provided by the manufacturer of the device to...
15 May 2018 by KarstenK
I see these possible solutions: a) you could be to write a small console app in c# which parses the file and write the data in a text file for your C++ code. b) you parse the vmcx-file with some xml-parser in C++. c) write some string search in C++ (a bit hacky) d) advanced: use C# in C++ e)...
15 May 2018 by Member 13339403
Hi, How to read the VM configuration file (VMCX) using WMI C++. Something similar to Editing a .VMCX file | Ben Armstrong’s Virtualization Blog[^] Most of the documents i find are in c# or powershell. Is there something similar in C++ where i can use object.GetRelated () association ? Thanks...
1 May 2018 by Patrice T
cmd1 = new SqlCommand("INSERT INTO [dbo].[OSInfo]([LastUpdatedOn],[IPAddress],[OperatingSystem],[ServicePack],[OSVersion],[OSArchitecture],[OSSno],[OSInstallDate],[Description],[LastBootUpTime],[SPMajorVersion],[RegUser],[OSStatus]) VALUES (getdate(),'" + IPA + "','" + OperatingSystem + "','" +...
1 May 2018 by Member 13714562
I am trying make an application which when installed in other system, has to collect details and send to my SQL server. In SQL Server, I have made all columns as varchar(70). I thought the problem was with datatypes, so I decided to remove OSInstallDate and LastBootUpTime in the below code...
1 May 2018 by dan!sh
You are executing the command outside of foreach loop so only the last record will be saved in the database. If you want to save all the records, you might want to put the command execution inside the loop.
1 Feb 2018 by Member 13581511
I got an ArgumentException Quote: Value does not fall within the expected range in wmiProcess.InvokeMethod("Create", processToRun); What is wrong? Thanks. What I have tried: var processToRun = new[] { @"C:\Program Files\Lockheed Martin\Prepar3D v4\Prepar3D.exe" }; ...
1 Feb 2018 by Aydin Homay
Hey you can find your answer at the following links: Create a Remote Process using WMI in C#[^] Connecting to WMI Remotely with PowerShell (Windows)[^] Some nice discussions are going around this topic in here: Cheers, --AH
19 Nov 2017 by sumitk.cadc
Hi all, I want to fetch the FreePhysicalMemory of os using c#. i used WMI query for Win32_OperatingSystem class but it is not giving the accurate value plz help me TIA What I have tried: below is my code ObjectQuery wql = new ObjectQuery("SELECT * FROM Win32_OperatingSystem");...
19 Nov 2017 by Jochen Arndt
Quote: i used WMI query for Win32_OperatingSystem class but it is not giving the accurate value How do you know that it is not accurate? There may be two reasons that the result is not as expected: You missed that the value is in kilobytes There may be less free memory than expected when...
19 Nov 2017 by OriginalGriff
Try this: ManagementObjectSearcher search = new ManagementObjectSearcher("root\\CIMV2", "Select TotalVisibleMemorySize, FreePhysicalMemory from Win32_OPeratingSystem"); foreach (ManagementObject x in search.Get()) { ulong totalMemory =...
16 Nov 2017 by sumitk.cadc
Hi all, i want to fetch the location of installed products which are listed in "ADD and REMOVE" i plz tell me how to get installed location of all products? TIA What I have tried: tried to fetch using Windows Registry and also WMI query but both are returning location of few products only.
16 Nov 2017 by Richard MacCutchan
get installed location of all products - Google Search[^]
9 Nov 2017 by Nathan Minier
According to several sources that I came up with on a quick Google search, those logs are not exposed via WMI. You'll need to either pull them using Powershell, wevutil, or programatically access the logs through the registry. There's a basic hook for the PS portion at: Powershell and the...
3 Nov 2017 by Member 13370432
I am writing an application (Windows VB.net Form) in Visual Studio 2017 which gathers all the Computers present in a Domain from Active Directory, it then checks each machine (if it is switched on) for the presence of Antivirus software (checks for a specific file). If the Antivirus is not...
3 Nov 2017 by Dave Kreskowiak
Yeah, that code is not starting the process on the remote machine. It's starting the process on whatever machine this code is running on. The Process class, IIRC, will not launch a process on a remote machine. WMI would be better suited to this and you can launch NON-INTERACTIVE remote...
25 Sep 2017 by Member 12423231
Requirement is, the user should log in from specific system. For this I am saving client PC's MAC Address into my database. When user will try to login, the web application should get MAC ID of Client PC and verify with database value. If it matches, user will be allowed to log in. Is it...
25 Sep 2017 by Dave Kreskowiak
You can't do this. Access to client hardware is off-limits to the code running on the server (ASP.NET) and to code running in the browser (javascript). Also, A MAC Address is NOT unique to a system. MAC's are unique to a network interface on a network subnet. You CAN have multiple NIC's with...
10 Sep 2017 by Graeme_Grant
Have you tried using Google Search? I used WMI query logs[^] and there appears to be pages of solutions for you to try. Here are just a handful that look useful: * wmi query - use wmi to get newest Windows log events - Stack Overflow[^] * C# WMI reading remote event log - Stack Overflow[^] *...
10 Sep 2017 by Mark Regal
Looking for a SWbem WMI query to produce a list of the Win7x64 service logs. The log files which I'm looking for can be found using the Win7 Event Viewer using the following path... Event Viewer\Applications and Service Logs\Microsoft\Windows\... There are about 50 log folders listed for...
7 Aug 2017 by Andreas Mertens
I am trying to configure a Hyper-V virtual machine programmatically, start to finish, using only C# and WMI. Because this is on Windows 10, the WMI namespace is virtualization\V2, which is significantly different from the WMI namespace previous to Windows 8. At this point I have the virtual...
7 Aug 2017 by Andreas Mertens
After a lot of sifting through solutions found online and trying them out, I found the following: Attaching a VHD To A VM Using The Hyper-V WMI V2 Namespace – Taylor Brown's Blog[^] It is written for PowerShell, but it shows exactly how to allocate the resources. The issue I see with the...
6 Aug 2017 by Graeme_Grant
How about this Google Search: c# Programmatically mount a VHD in a hyper-V virtual machine[^] Found this answer: c# - Programmatically attaching a VHD to a remote Hyper-V VM - Stack Overflow[^]
17 Jul 2017 by Member 13315111
hi i need to run a batch file into a list of rdps by code. i use wmi and somehow blocked by firewall or something then test psexec and also failed. for now i hope to run psexec after connecting each rdp, using the current connection. but still got no idea about it. please help What I have...
17 Jul 2017 by Member 13262965
I need to read the SOFTWARE\Microsoft\Virtual Machine\Guest\Parameters\PhysicalHostName Registry Key to get the Host Name of a Hyper V VM. I can connect and also retrieve alot of information trough wmi in other parts of the program, but i stumble if it comes to reading a registry Key :( Im...
17 Jul 2017 by Member 13262965
Since nobody seems to be willing to answer i close the question. I didnt found my error so far. I can read all regKeys but the one i want to read.
16 Jun 2017 by Richard Deeming
Try using the registry classes in the Microsoft.Win32 namespace: Using hive = RegistryKey.OpenRemoveBaseKey(RegistryHive.LocalMachine, m_ComputerName, RegistryView.Default) Using key = hive.OpenSubKey("SOFTWARE\Microsoft\Virtual Machine\Guest\Parameters", False) If key IsNot Nothing...
12 May 2017 by MJ999
I am trying to apply a snapshot to a hyper V (v2)virtual machine using C# and using the ApplySnapshot Method.https://msdn.microsoft.com/en-us/library/hh850022%28v=vs.85%29.aspxBut I seem to be struggling as there no sample for that method. I would be grateful if someone could help in...
12 May 2017 by EChristensen
Hi MJ999, This example is in VB.NET, but it can easily be translated into C#. In this example, I am applying the most recent snapshot of the virtual machine. To apply a specific snapshot, replace the 'lastSnapshot' with the Msvm_VirtualSystemSettingData instance of the snapshot you wish to...
16 Mar 2017 by MarioCortess
I want to change the network card configuration as the IP address, subnet, gateway and DNSs. All this using ASP.NET 4.0 with C# deployed in Windows XP IIS 5.1. I'm using WMI for this purpose, but when I run the code not work. Specifically I can show the IP, Subnet, Gateway and DNS of...
16 Mar 2017 by Dave Kreskowiak
You have to run your web site under a different account, one specifically setup to run the site AND have enough admin permissions to make changes to the network configuration.The default ASP.NET account does not have permissions to make those changes.Other than that, it doesn't matter...
19 Feb 2017 by Sabyasachi Mukherjee
This is the current scenario.I have a WPF form, where there's a combobox from where one can choose any of the Win 32 classes. Below that, I have a datagrid where one can put one of many of the properties.For example, for Win32_Volume, one can put in the DeviceID, the DriveLetter, the...
18 Feb 2017 by Sabyasachi Mukherjee
I am trying to use WMI in C# to query the connected hard disk information. Basically, I am trying to convert a Powershell script to C#. However, I've hit a wall. In Powershell, I have a line:$testdrv = Get-WmiObject -Class win32_volume -Filter "DriveLetter='$DriveLetter'"Now, in C#, the...
18 Feb 2017 by Dave Kreskowiak
The problem is you have to use a WQL query to get at the object and that's what I used in my tests.The first example you provided works because, on the Win32_LogicalDisk class, the DeviceID property is a Key. See the documentation here[^].On the Win32_Volume class, DriveLetter is not a...
18 Feb 2017 by Michael_Davies
Here is the code generated using WMICodeCreator that works for your problem, you can take out a lot of the loop stuff as you know there is only one entry;using System;using System.Management;using System.Windows.Forms;namespace WMISample{ public class MyWMIQuery { ...
18 Feb 2017 by Dave Kreskowiak
It works fine on my machine. The problem with WMI is that not everything is required to be filled in by whatever components/drivers you have int the system. It's entirely possible that the Volume object doesn't have DriveLetter filled in.You can check this by downloading WMI Explorer from...
11 Feb 2017 by Member 10974007
Dim vimal As String = (String.Format(queryObj("Caption"))) MsgBox(vimal.ToString())
11 Feb 2017 by Richard MacCutchan
Console.WriteLine("Model: {0}", queryObj("Model").ToString())
1 Feb 2017 by Member 12779048
Hi I have a question about interctivity while using WMI in c#, I am running command on my remote desktop using wmi for example:cmd /c C:\test.exeNow while doing that process asks to press any key to continue.I had an idea that command would dump result to some sort of log file so...
1 Feb 2017 by Member 12779048
Aye I see, well then I have no choice but to do it with power shell execution script.
1 Feb 2017 by Dave Kreskowiak
You cannot do that for very obvious security reasons.A process launched on a remote machine is launched in a manner that does not allow a user interface to show to the user logged into the remote machine. There is no way to give any input to that process. If it's waiting for input, it will...
3 Sep 2016 by Member 12714049
Is there a way to programmatically get the volume name associated with a hidden Windows disk partition? The hidden partition is found by querying Win32_DiskPartition, but I can't find a way to get the volume name of the partition. Diskpart lists them, so I know they exist. Note that I'm not...
31 Aug 2016 by Jochen Arndt
Hidden partitions are not mounted (no drive letter assigned) and can't be therefore accessed using any logical disk based Windows function.When using Win32_DiskPartition you should have access to the label by the Name property. That is the text shown by diskpart in the "Label" column.
20 Apr 2016 by h.sabatou
Hi,I have found some code on the web to get a registry key remotely with special credentialPublic Enum RegHive As UInteger HKEY_CLASSES_ROOT = &H80000000UI HKEY_CURRENT_USER = &H80000001UI HKEY_LOCAL_MACHINE = &H80000002UI HKEY_USERS = &H80000003UI...
20 Apr 2016 by Dave Kreskowiak
Error code 2 is FILE NOT FOUND.You can find what those error codes are here[^].The path you built doesn't exist on the target machine.
19 Apr 2016 by Gary Sun
Hi,all!I want to get Local group policy list using WMI,can you give me C# code?
19 Apr 2016 by DoomMaker79
Hi!Try this:private void queryMethod(string queryString) { ManagementScope scope = new ManagementScope("\\\\localhost\\root\\rsop\\Computer"); scope.Connect(); ObjectQuery query = new ObjectQuery(queryString); ...
12 Apr 2016 by Sebastian T Xavier
I have a PC, which have a public IP 192.public.1.10 and local IP 192.168.Local.10. I wish to use WMI Explorer to connect to this PC from a different network, which is connected through VPN.Now I can use WMI Explorer to connect to this PC, from the same network using local IP & Public...
12 Apr 2016 by Jochen Arndt
Because you can connect to both IPs from the local network but not from the outside, it seems that the connection is blocked by a firewall (e.g. on a router / gateway). This will not occur when using VPN (the firewall let the VPN packets pass).If your firewall provides logs, you may check...
9 Mar 2016 by Sebastian T Xavier
Currently I have the following query to monitor a parameter of SQL server 2008 using PowerShell.SELECT cntr_value as Mem_KB FROM sys.dm_os_performance_counters WHERE counter_name = 'SQL Cache Memory (KB)'I would like to monitor the same with WMI. How is it possible? What would be the...
1 Mar 2016 by mbradford
I have some existing C++ COM code that uses the WMI MicrosoftNLB_Node class to get a single cluster ip address. I have now added a second IP address to the cluster, and that seems to be working fine (in networking terms).How can I enumerate all the Cluster IP addresses? None of the WMI...
27 Dec 2015 by BCN-163
here is the right way to call Format use WMI. reference websites are as follow.How to format a RAW disk in windows by C++ | wreckor[^]blog.aaronballman.com/2011/07/calling-instance-methods-in-wmi/#comment-48687namespace Utility{ const WCHAR* GetFileSystemStr(eFileSystem...