How to get system information in guest account c#?

2019-07-18 10:06发布

问题:

I would like to know how to get system information such as OS name and version, system manufacturer.

I can get this information by WMI queries, but WMI queries are not working for guest account.

Any idea?

Thanks.

回答1:

System.Environment class resolves most of your needs:

 System.Environment.OSVersion 
 System.Environment.ProcessorCount 
 System.Environment.MachineName 


标签: c# wmi accounts