WMI
How to get Processor Id from win32 processor
string strProcessorId = string.Empty; SelectQuery query = new SelectQuery(\"Win32_processor\"); ManagementObjectSearcher search = new ManagementObjectSearcher(query);[详细]
2023-03-20 12:29 分类:问答Preventing ComExceptions when querying via WMI
I\'ve got some code that uses WMI to scour a windows domain for comput开发者_如何学运维ers matching certain criteria.[详细]
2023-03-20 07:17 分类:问答Get current user name when starting with UAC
Our setup has an embedded manifest that triggers the UAC before the application starts. (The applications runs as an admin user). However, if the setup needs to install the .NET Framework, we have to[详细]
2023-03-19 20:40 分类:问答How to get a list of sites and SSL certificates from IIS 6.0 using C#, WMI, and/or System.Management?
I am trying to export all the SSL certificates on IIS 6.0 sites from a specificed remote server to a centralized backup server so we can migrate and/or backup our SSL certificates, however I cannot fi[详细]
2023-03-19 18:22 分类:问答How can I get the drive letter of an USB device?
I am using WMI to get all inserted USB disks manufactures names. The code works great but I have a problem how c开发者_StackOverflow社区an I determine witch drive letter a certain disk has... I can ge[详细]
2023-03-19 05:11 分类:问答The Mono .NET framework and WMI
We have a .NET project that uses WMI and are interested in porting it to the Mono framework. It appears Mono does not support WMI.[详细]
2023-03-18 23:39 分类:问答.Net WMI classes - which ones do I have to dispose?
If I am using a ManagementObjectSearcher, I can easily wrap it in a using block: using (var searcher = new ManagementObjectSearcher(scope, query))[详细]
2023-03-18 23:23 分类:问答problems with WMI asynchronic call
if i use the absolute default setup for a WMI asynchronic query: mgtEvWatcher = new ManagementEventWatcher(\"SELECT * FROM __InstanceOperationEvent WITHIN 1 WHERE TargetInstance ISA \'Win32_Process\'[详细]
2023-03-18 04:48 分类:问答C# using WMI to query Win32_Fan class and fan speed return null?
here is code i used to query fan speed, but fan开发者_如何学Python speed always return null. Anyone know why?[详细]
2023-03-18 02:40 分类:问答How could I get or change the IP address of a disconnected NIC in Windows?
I have configured the IP address for a N开发者_StackOverflow社区IC successfully in Windows7. But after pulling out the net cable, I can\'t get the IP address from API and ipconfig, but I can view it i[详细]
2023-03-17 20:54 分类:问答