¡@

Home 

c# Programming Glossary: wmi

How to shutdown the computer from C#

http://stackoverflow.com/questions/102567/how-to-shutdown-the-computer-from-c-sharp

How do you get total amount of RAM the computer has?

http://stackoverflow.com/questions/105031/how-do-you-get-total-amount-of-ram-the-computer-has

installedMemory memStatus.ullTotalPhys Or you can use WMI managed but slower to query TotalPhysicalMemory in the Win32_ComputerSystem..

Detect Antivirus on Windows using C#

http://stackoverflow.com/questions/1331887/detect-antivirus-on-windows-using-c-sharp

is automatic through Windows Management Instrumentation WMI . In manual detection mode Windows Security Center searches.. Center detect the status of independent software. In WMI mode software manufacturers determine their own product status.. that status back to Windows Security Center through a WMI provider. In both modes Windows Security Center tries to determine..

Win32 API function to programmatically enable/disable device

http://stackoverflow.com/questions/1438371/win32-api-function-to-programmatically-enable-disable-device

dark corners of the framework that will do this maybe in WMI . Update 24 9 09 I figured out how to do this with a filter.. run into trying to disable your touchpad from Win32 or WMI or any other API which calls down into the SetupDi family of..

.NET Process Monitor

http://stackoverflow.com/questions/1986249/net-process-monitor

c# process system share improve this question WMI provides a way to track processes starting and terminating with..

How to fast get Hardware-ID in C#?

http://stackoverflow.com/questions/2333149/how-to-fast-get-hardware-id-in-c

I need in my license Program use hardware id I tried use WMI but it still slow . I need Cpu HDD Motherboard info. c# .net..

How to get Printer Info in .NET?

http://stackoverflow.com/questions/296182/how-to-get-printer-info-in-net

improve this question As dowski suggested you could use WMI to get printer properties. The following code displays all properties..

How to execute a command in a remote computer?

http://stackoverflow.com/questions/428276/how-to-execute-a-command-in-a-remote-computer

share improve this question Another solution is to use WMI.NET or Windows Management Instrumentation . Using the .NET Framework.. tasks using Windows Management Instrumentation WMI . Code Sample var processToRun new notepad.exe var connection..

How to read command line arguments of another process in C#?

http://stackoverflow.com/questions/504208/how-to-read-command-line-arguments-of-another-process-in-c

arguments used to start the process. source MSDN Stuart's WMI suggestion is a good one string wmiQuery string.Format select..

Best way to programmatically configure network adapters in .NET

http://stackoverflow.com/questions/689230/best-way-to-programmatically-configure-network-adapters-in-net

adapters in Windows. I have this basically working through WMI but there are a couple of things I don't like about that solution.. cable is not plugged in errors are returned from the WMI methods so I can't tell if they really succeeded or not. I need..

How do I determine the owner of a process in C#?

http://stackoverflow.com/questions/777548/how-do-i-determine-the-owner-of-a-process-in-c

do this c# share improve this question You can use WMI to get the user owning a certain process By process id public..

How to detect a process start & end using c# in windows?

http://stackoverflow.com/questions/8455873/how-to-detect-a-process-start-end-using-c-sharp-in-windows

this question To do this without polling requires WMI. This is well supported in .net and you can use the ManagementEventWatcher.. can use the ManagementEventWatcher class to subscribe to WMI notifications. This Code Project article illustrates how it..

Get installed applications in a system

http://stackoverflow.com/questions/908850/get-installed-applications-in-a-system

subkey.GetValue DisplayName Alternatively you can use WMI as has been mentioned ManagementObjectSearcher mos new ManagementObjectSearcher..

Releasing a unplugged virtual Serial Port

http://stackoverflow.com/questions/9835881/releasing-a-unplugged-virtual-serial-port

searcher new ManagementObjectSearcher root WMI SELECT FROM MSSerial_PortName WHERE PortName ' this.PortName..

How to check the machine type? laptop or desktop?

http://stackoverflow.com/questions/1013354/how-to-check-the-machine-type-laptop-or-desktop

return ChassisTypes i return ChassisTypes.Unknown c# wmi share improve this question Here's a good Microsoft article..

WIN32_Processor::Is ProcessorId Unique for all computers

http://stackoverflow.com/questions/1101772/win32-processoris-processorid-unique-for-all-computers

obj ProcessorId .ToString return processorID c# winapi wmi share improve this question No it can't be guaranteed that..

How can I find the Harddisk Device Serial Number without using the WMI in .NET?

http://stackoverflow.com/questions/1176887/how-can-i-find-the-harddisk-device-serial-number-without-using-the-wmi-in-net

the Serial Number of a physical hard disk c# .net vb.net wmi hard drive share improve this question This should help..

Using clause fails to call Dispose?

http://stackoverflow.com/questions/11896282/using-clause-fails-to-call-dispose

Memory leak in WMI when querying event logs . c# .net wmi using share improve this question At first glance there..

How to get CPU temperature?

http://stackoverflow.com/questions/1195112/how-to-get-cpu-temperature

public float GetCPUTemperature ... return 0 c# .net wmi share improve this question I'm pretty sure its manufacturer..

What format is this time value in?

http://stackoverflow.com/questions/1351483/what-format-is-this-time-value-in

out this time is in CIM_DATETIME format. c# .net datetime wmi wql share improve this question This looks like a standard..

how to get logged on users with their status on remote machine

http://stackoverflow.com/questions/14212155/how-to-get-logged-on-users-with-their-status-on-remote-machine

status meaning Active Disconnected Logged off etc. c# wmi share improve this question You can use the Win32_LogonSession..

Get the date-time of last windows shutdown event using .NET

http://stackoverflow.com/questions/1631933/get-the-date-time-of-last-windows-shutdown-event-using-net

to find out last shutdown time Thanks. c# .net time wmi shutdown share improve this question everything here is..

Is there a possibility to differ virtual printer from physical one?

http://stackoverflow.com/questions/2327763/is-there-a-possibility-to-differ-virtual-printer-from-physical-one

to do I analyzed all the properties of Win32_Printer wmi class but can't see any suitable one. Please help. c# .net.. can't see any suitable one. Please help. c# .net winapi wmi share improve this question I don't think it's possible..

Check if SQL server (any version) is installed?

http://stackoverflow.com/questions/2381055/check-if-sql-server-any-version-is-installed

cannot proceed. I have seen versions that use the registry wmi SMO or simply just connect to SQL server instance although would..

Get User SID From Logon ID (Windows XP and Up)

http://stackoverflow.com/questions/2727393/get-user-sid-from-logon-id-windows-xp-and-up

at using something like SENS instead c# .net windows wmi sid share improve this question I asked a very similar question..

WMI to reboot remote machine

http://stackoverflow.com/questions/2921905/wmi-to-reboot-remote-machine

work and I would prefer WMI going forward. c# .net wmi shutdown share improve this question To address WMI queries..

How to remotely control a Windows Service with ServiceController?

http://stackoverflow.com/questions/2996282/how-to-remotely-control-a-windows-service-with-servicecontroller

are both running Win XP Pro. Thanks. c# windows services wmi remote access servicecontroller share improve this question..

How can I get an active UNC Path in DFS programatically

http://stackoverflow.com/questions/3938669/how-can-i-get-an-active-unc-path-in-dfs-programatically

is on whether it is Server1 Folder or Server2 Folder . c# wmi dfs share improve this question try this where sDFSPath..

Is there a way to generate WMI code/classes?

http://stackoverflow.com/questions/44504/is-there-a-way-to-generate-wmi-code-classes

generate C# classes for accessing WMI c# code generation wmi share improve this question To generate strongly typed WMI..

User logged into remote machine

http://stackoverflow.com/questions/5067240/user-logged-into-remote-machine

users are logged into remote machine using WMI and C# c# wmi share improve this question After little research I was..

How can I resolve a “Provider load failure” for WMI requests?

http://stackoverflow.com/questions/563150/how-can-i-resolve-a-provider-load-failure-for-wmi-requests

on how to troubleshoot and resolve this issue c# .net wmi share improve this question You might want to confirm all..

Detecting USB drive insertion and removal using windows service and c#

http://stackoverflow.com/questions/620144/detecting-usb-drive-insertion-and-removal-using-windows-service-and-c-sharp

with ManagementEventWatcher c# .net windows services wmi usb appliance share improve this question There's an article..

Best way to programmatically configure network adapters in .NET

http://stackoverflow.com/questions/689230/best-way-to-programmatically-configure-network-adapters-in-net

TCP IP screens. What's the best way to do this c# .net wmi share improve this question You could use Process to fire..