How to get system information in guest account c#?

风流意气都作罢 提交于 2019-12-10 23:33:24

问题


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 


来源:https://stackoverflow.com/questions/2796930/how-to-get-system-information-in-guest-account-c

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!