using managementclass with "network service" user  
Author Message

PostPosted: .NET Framework Networking and Communication, using managementclass with "network service" user Top


I have an ASP.NET that uses ManagementClass to retrieve the processor Id, but it doesn't work on low permission users... where can I find information about permissions needed get that Id

The code is this:

string cpuInfo = String.Empty;

ManagementClass mc = new ManagementClass("Win32_Processor");

ManagementObjectCollection moc = mc.GetInstances();

foreach (ManagementObject mo in moc)


if (cpuInfo == String.Empty)


// only return cpuInfo from first CPU

cpuInfo = mo.Properties["ProcessorId"].Value.ToString();



return cpuInfo;

.NET Development5