Results 1 to 7 of 7
  1. #1
    Join Date
    Nov 2003
    Posts
    22

    Unanswered: error '80041003'

    I have the code:
    <%
    strComputer = "."
    Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\MicrosoftDNS")
    Set colItems = objWMIService.ExecQuery _
    ("Select * from MicrosoftDNS_Zone Where Name = 'pro.co.il'")
    For Each objItem in colItems
    objItem.ReloadZone()
    Next
    %>

    What is the error '80041003' on the second (+thierd) line of the code???

  2. #2
    Join Date
    Feb 2002
    Posts
    2,232
    What are you trying to return from WMI ?

  3. #3
    Join Date
    Nov 2003
    Posts
    22

    response

    Originally posted by rnealejr
    What are you trying to return from WMI ?

    I try to get to the DNS and operate Relaod on it!!!!

  4. #4
    Join Date
    Feb 2002
    Posts
    2,232
    Just to make sure - did you install the DNS provider for WMI ? This is not installed by default.

  5. #5
    Join Date
    Nov 2003
    Posts
    22

    yes

    Originally posted by rnealejr
    Just to make sure - did you install the DNS provider for WMI ? This is not installed by default.
    Yes I did.

    Do I need to replace the part of:"\root\MicrosoftDNS"???
    In What??

  6. #6
    Join Date
    Feb 2002
    Posts
    2,232
    Normally, the class begins with win32_ not "Select * from MicrosoftDNS_Zone". Let me see what I can find.

  7. #7
    Join Date
    Jan 2003
    Posts
    6
    It's been a while but in case someone else has the same problem, mostlikely iis is running under an account without enough rights. Disable annonymous access on iis and make sure you're logged in to an account with enough privileges.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •