Jump to content
Sign in to follow this  
Guest felefort

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,

Share this post


Link to post
Share on other sites
Flashz

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.

Share this post


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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.