JoinDomainOrWorkGroup

  • Thread starter Thread starter Tom Ker
  • Start date Start date
T

Tom Ker

I'm using the following lifted pretty much intact with all the supporting
scripting from the TechNet web site to join a computer to our domain...

sRC = oComputer.JoinDomainOrWorkGroup("DomName.com", _
sPWD, "DomName\" & sID, NULL, _
JOIN_DOMAIN + ACCT_CREATE)

The problem I'm encountering is that it is not joining the domain all the
time. Sometimes it joins a workgroup named "DomName.com". Why would that
be happening? Is there a way to ensure it only joins the domain and not a
workgroup?

Thanks,

Tom
 
Thanks, that's what I did for Win2K and it did work well. I want to get
away from using external exe's, though. With NetDom I had to also use
SNetCFG to first add then remove Server Service so NetDom could do it's
thing since we generally don't deploy our workstations with Server Service
installed.

Tom
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top