Jump to content

Script to Join a Domain


Recommended Posts

Guest felefort

Wich command (run ??) I use to Open " system properties " <right click MyComputer=>Properties>. Maybe I on the wrong way but thats my idea start this script to join this computer on Domain. <Win XP pro>

Any help will be welcome....

Thanks,

Link to post
Share on other sites

RunWait(@ComSpec & " /c " & "NetDom REMOVE " & @Computername & " /d:domainname /userd:username /passwordd:pass /userO:admin /passwordo:adminpass", @TEMPDIR, @SW_HIDE)

RunWait(@ComSpec & " /c " & "NetDom JOIN " & @Computername & " /d:domainname /userd:username /passwordd:pass /userO:admin /passwordo:adminpass /REB:10", @TEMPDIR, @SW_HIDE)

If you're already joined to a domain make sure you remove from that domain first.

You can also pipe the output to a textfile and pop up message boxes depending on the result.

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...