Results 1 to 7 of 7

Thread: you know this error code? 80004005

Threaded View

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Feb 2003
    Posts
    599

    you know this error code? 80004005

    run time error "-2147467259" (80004005)
    unspecified error...

    VB Code:
    1. Public Function createuseraccount()
    2.     Dim userobj As IADs
    3.    
    4.     Set domainobj = GetObject("WinNT://localhost")
    5.     Set userobj = domainobj.Create("User", "mason")
    6.     userobj.SetPassword "mason"
    7.     userobj.FullName = "mason"
    8.     userobj.Description = "mason account"
    9.     userobj.SetInfo
    10.    
    11.     Set userobj = Nothing
    12.  
    13. End Function

    1.) this error occurs when the userobj,setinfo is issued.. why?

    2.) and another thing,
    GetObject("WinNT://DOMAIN")

    but i change to the following

    GetObject("WinNT://localhost")

    * It wont be a problem right, cause the local machine dont have a domain.. its a workgroup only.. please guide me.. thank you
    Last edited by vbnew; Aug 25th, 2004 at 09:25 PM.
    Thank You

Posting Permissions

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



Click Here to Expand Forum to Full Width