Jump to content

Joindomain Tool


whowd
 Share

Recommended Posts

The original poster most likely isn't going to respond. His last post was May 5th 2006. Besides, the changes that you need are very simple.

Hi weaponx!!!

Thanks for your reply. Do you mind if you post the additional code here.

Thanks in adv.

PInoyz

Link to comment
Share on other sites

  • 1 year later...

If you put a computer name in the text field, and click on add computer to domain it will add the computer you are on to or it will add a remote computer ?

What about just trying it?

>_<

Edited by cherdeg
Link to comment
Share on other sites

  • 1 month later...

Btw., the following part of the script will, in my personal opinion, NOT skip out of the loop:

If $existingOU <> "0" AND $existingOU <> $selectedOU Then
    $attemptJoin = MsgBox(4, "Computer exists in a different OU", "This computer already exists in a different OU." & @LF & @LF & _
                                "A computer with this name (" & $computername & ") already exists in another OU." & @LF & @LF & _
                                "The existing OU::" & @LF & _
                                $existingOU & @LF & @LF & _
                                "The OU you selected:" & @LF & _ 
                                $selectedOU & @LF & @LF & _
                                "Do you want to attempt to join the domain in this OU anway?")  
    ;------------------------------------------------------------------------------
    ; If user clicked "No" skip out of the loop
    ;------------------------------------------------------------------------------
    If $attemptJoin = 7 Then
        ContinueLoop
    EndIf
EndIf
Some kinda "Else...ExitLoop" statement is missing, right? Only the fact that $attemptJoin is not = 7 will just not execute ContinueLoop, but the loop isn't stopped / paused / halted...or am I mistaken? Edited by cherdeg
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...