Questions tagged [system.management]
103 questions
0
votes
1 answer
System.Management Implementation in Windows Form Won't Work
Using Visual Studios RC 2017, using their template for a .NET Windows Form Application
Trying to get a list of usb devices from my computer, and stick it crudely into a rTextbox for a school project, using a function in System.Management called…

Yonatan Besser
- 3
- 1
0
votes
2 answers
What is the best practice for performance tracking? System.Diagnostics or System.Management?
I want implement a system that monitors currently running processes. The system get information about high load (CPU, Memory, etc.). I investigate two namespaces. It is System.Diagnostics and System.Management.
First, I wrote a class to display…

user6408649
- 1,227
- 3
- 16
- 40
0
votes
1 answer
System.Management.dll not recognised .Net 4.6
I am having a really wired issue where I have created a new ASP.Net 4.6 web application (Visual Studio 2015 Community Edition) and everything works fine.
The app will compile without any issues at all but as soon as I try to run the app on the…

OPSL
- 131
- 1
- 11
0
votes
1 answer
Processor Id Not found
I am trying to get a CPU ID Using managementobjectserarcher but I am getting an error of object reference not found instance of an object exception.
The sample code has been written manually so may be some spelling mistake. but it is compiling…
user4604440
0
votes
0 answers
Are WMI namespaces instances of a class?
I've been writing a program in C# to scavenge information out of WMI as a project (I know many great tools out there exist already, but this is both for learning and custom tailored to an environment I manage), and I've come across a few oddities.…

Christopher D Albert
- 57
- 1
- 10
0
votes
1 answer
ManagementEventWatcher.Start() Access Denied
I'm trying to create an application in C#.Net, and I need it to scan the processes that the user start and stop, but I'm getting an "Access Denied" on the .Start()
Here is what I've got so far
using System;
using System.Collections.Generic;
using…

user3153340
- 189
- 1
- 9
0
votes
1 answer
System.Management, Management Object Searcher, and RAM
I am brand new to coding and I'm having a go at trying to make a simple app that shows computer information in a multiline textbox, as you do.
So, I managed to get the basics by searching the registry for os name, version, etc and using…

ironmonkey
- 3
- 2
0
votes
1 answer
Monitoring using WMI or Perfmon (programmatically in .NET)
I need to develop an agent windows service which will always monitor resources in the current installed machine only. The monitored resources might be processor health, SNMP traps, SQL Server health.
I have figured out that this can be achieved…

Beryl Wilson
- 125
- 8
0
votes
0 answers
asp.net network printer not showing the zebra printers?
Hi i have a method that gets a printer list from the network and fill my drop-down list:
private void fillprinterslist()
{
System.Management.ManagementScope objMS =
new System.Management.ManagementScope(ManagementPath.DefaultPath);
…

ExpertWannaBe
- 117
- 3
- 17
0
votes
1 answer
Get CIM Data type from properties in WMI Classes with C#
So I've managed to write a class that allows me to access WMI and get information about classes, including their methods, and all of the properties of the classes and of their subsequent methods. I am unable to find anything in C# under the…

Christopher D Albert
- 57
- 1
- 10
0
votes
1 answer
System.Management.ConnectionOptions always requires a password in text?
I'm using WMI in .NET to connect to remote machines in a web app. When I initialize the connection, the Management ConnectionOptions always require a username and password in text. I was wondering if there was a way for it to use the context of…

tuseau
- 1,334
- 4
- 17
- 37
0
votes
1 answer
Textbox text not parsing with spaces in VB.NET
I have a textbox that will be populated with a directory structure (for example, C:\Program Files\Visual Basic). I'm trying to use the textbox.text object in another variable, but when the path includes spaces the information will cut off.
Here is…

Sean Long
- 2,163
- 9
- 30
- 49
-2
votes
2 answers
C# WMI MSFT_Disk syntax
This form of ManagementObject (using ".DeviceID=") assignment works:
// get number of logical drives on given physical disk
int n = 0;
var id = "\\\\.\\PHYSICALDRIVE0";
var disk = new…

galileo
- 59
- 7