my script works fine when executed using cscript.exe, but when embedded into an asp page, it hangs on the following line:
Expand|Select|Wrap|Line Numbers
- Set objDNS1Service = GetObject("winmgmts:\\ns1\Root\MicrosoftDNS")
Microsoft VBScript runtime error '800a0046'
Permission denied: 'GetObject'
i have ensured that the user credentials under which the asp site is running is set to an administrative user that exists on both servers and the passwords all match.
i have tried replacing the above code with:
Expand|Select|Wrap|Line Numbers
- Set objLocator = CreateObject("WbemScripting.SWbemLocator")
- strServer = "NS1"
- strNamespace = "root\MicrosoftDNS"
- strUser = "myAdministrativeUser"
- strPassword = "myPassword"
- Set obj = objLocator.ConnectServer(strServer, strNameSpace, strUser, strPassword)
SWbemLocator error '80070005'
Access is denied.
i have been searching on google for several days and checked every security setting possible but my asp code will just not authenticate across the network.
any help would be reeallly appreciated.
thanks
- simon