访问电脑信息. [英] to access pc information.

查看:106
本文介绍了访问电脑信息.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我正在使用WMI访问网站中的PC信息(硬件和软件).在本地PC上,它工作正常,但是一旦我在服务器上上传,它就无法访问任何信息.请告诉我为什么它无法访问.

谢谢

Hi,
I am using WMI to access pc information(h/w and s/w both) in my website. On local pc it is working fine, but once i upload on server it is not accessing any information.Please tell me why it is not accessing.

Thank You

推荐答案

在服务器上,它在Internet Zone中运行.您可能需要impersonate具有相应权限的用户.但是,第一手为什么需要动态访问服务器上的硬件/软件信息?您知道的,服务器详细信息,除非每天都要更改.留给您的应用程序访问敏感信息是一个安全漏洞.
On the server it is running in Internet Zone. You may need to impersonate an user who has necessary privilege for that. But at the first hand why you need to dynamically access the hardware/ software information on the server? You know it, the server details unless it is going to change everyday. Leaving your application access sensitive information is a security hole.


它不起作用,因为您的网站所运行的帐户(ASPNET)对客户端计算机完全没有任何权限.有问题.

除非您的Web服务器和客户端计算机都位于同一个域(Active Directory)中,否则您将无法实现这一目标.

如果它们在同一个域中,则该Web应用程序必须在一个对您在客户端计算机上使用的WMI对象具有足够权限的帐户下运行.这通常是域用户"帐户或更高级别的帐户.
It doesn''t work because the account your website is running under (ASPNET) does not have any permissions at all to the client machine in question.

Unless you web server and client machines are all in the same Domain (Active Directory), you have no hope of pulling this off.

If they ARE in the same domain, the web application would have to run under an account that has enough permissions to the WMI objects your using on the client machine. This is usually a "Domain User" account or better.


这篇关于访问电脑信息.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆