Heres a snippet of our code for moving workstations, basically you bind to the target OU, then "move" from the source ou into that. We use this code to have NT4 workstations "join and move themselves" into AD.
If you have any questions, feel free to ask.
Code:
$WKSTA = "hostname"
$USERID = "domain\userid"
$PASSWORD = "********"
$SERVER = "dcservername"
$SOURCEOU = "LDAP://CN=$WKSTA,CN=COMPUTERS,DC=XXX,DC=YYY,DC=ZZZ,DC=CA"
$TARGETOU = "LDAP://$SERVER/OU=AAA,OU=BBB,OU=CCC,DC=XXX,DC=YYY,DC=ZZZ,DC=CA"
;======================
; GET HANDLE TO LDAP...
;======================
$ROOT = GETOBJECT("LDAP:")
IF @ERROR
EXIT 102
ENDIF
;======================
; BIND TO TARGET OU ...
;======================
$ADS_SERVER_BIND = 512
$TARGET = $ROOT.OPENDSOBJECT($TARGETOU, $USERID, $PASSWORD, $ADS_SERVER_BIND)
IF @ERROR
EXIT 103
ENDIF
;=============================================
; MOVE WORKSTATION FROM SOURCE OU TO TARGET OU
;=============================================
$= $TARGET.MOVEHERE($SOURCEOU,"CN=$WKSTA")
IF @ERROR
EXIT 104
ENDIF