开发者

IIS6 Classic ASP WMI Permissions

开发者 https://www.devze.com 2023-04-01 11:26 出处:网络
I\'m developing a simple internal Classic ASP website (served by IIS6) to help reboot a handful of remote computers.

I'm developing a simple internal Classic ASP website (served by IIS6) to help reboot a handful of remote computers.

The App Pool is running under a set of credentials that is an admin on this group of computers, but whenever attempting to connect to an开发者_如何学编程y of the remote computers with WMI I recieve an access denied error.

I've tried to connect a number of ways:

 WbemScripting.SWbemLocator.ConnectServer(sComputerName, "\root\cimv2\")

 Getobject("winmgmts:{impersonationLevel=Delegate," & _
     "authority=kerberos:OurDomain\" & sComputerName & "}!" & _
     "\\" & sComputerName & "\root\cimv2")

I am able to get the code to work if I pass credentials in the ConnectServer() method but we'd rather not store credentials in code...

Any ideas on how to fix this?


Did you configure delegation inside active directory at the computer objects? Only then delegation from the web server over a account to another remote computer will work.

See screenshot where to configure.

IIS6 Classic ASP WMI Permissions

0

精彩评论

暂无评论...
验证码 换一张
取 消