Click here to Skip to main content
15,908,444 members
Please Sign up or sign in to vote.
4.50/5 (2 votes)
See more:
I am working on a project where I have to validate the Platform for Intel Atom processor and Windows 7 OS.

I have Used:
ManagementClass mgmt = new ManagementClass("Win32_Processor");
//for Intel Atom, "Win32_OperatingSystem" for Win 7 OS

Now, This Logic is working fine when login as Admin or Standard user, But When login as Guest User I am getting System.UnauthorizedAccessException in method:
void ThrowExceptionForHRInternal(Int32, IntPtr)
description: Access is denied

Is there any restriction for the Guest Account to fetch Platform details?


Thanks,
Sandeep Sisodiya
Posted
Updated 25-Apr-11 20:32pm
v3
Comments
CodeHawkz 26-Apr-11 2:32am    
The easiest way to find this out is to download a simple tool which displays such data and run it on a guest account :) You'll get the answer.

1 solution

What about some basic C# class to get your information?

Environment[^] and look at .OSVersion and .GetEnvironmentVariable(String).

string arch = Environment.GetEnvironmentVariable("PROCESSOR_ARCHITECTURE"); // AMD64
string archId = Environment.GetEnvironmentVariable("PROCESSOR_IDENTIFIER"); // Intel64 Family 6 Model 23 Stepping 10, GenuineIntel
string archLevel = Environment.GetEnvironmentVariable("PROCESSOR_LEVEL"); // 6
string archRevision = Environment.GetEnvironmentVariable("PROCESSOR_REVISION"); // 170a
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900