Thanks Imar,
I really appreciate your help, can you explain me in details.
Actually i want to create subdomain dynamically using ASP Code and i am facing the error here.Please advice.
'Setup Connections To IIS
set locatorObj = CreateObject("WbemScripting.SWbemLocator")
set providerObj = locatorObj.ConnectServer(strServer,"root/MicrosoftIISv2")
set serviceObj = providerObj.Get("IIsWebService='W3SVC'")
it give error
SWbemLocator error '80041003'
Access denied
And when i pass the Username and password for web Server
set providerObj = locatorObj.ConnectServer(strServer, "root/MicrosoftIISv2",strUser, strPassword)
it give error
SWbemLocator error '80041064'
User credentials cannot be used for local connections
Thanks,
Surjit
|