God dang Bryce - you're right again (per usual) Serves me for not researching first.. I just opened up my AD SDK and sure enough...

Ok - if there wasn't a utility for doing it on Win2K, there is now ...

code:

break on


; RENAME USERID FOR WIN2K


$DOMAIN = "TASSIE"
$OLDUSERID = "SHAWN"
$NEWUSERID = "BRYCE"


$domain = olegetobject(0,"WinNT://$DOMAIN")


$user = val("&"+olecallfunc($domain,"getobject","ss","user","$OLDUSERID"))


$adspath = olegetproperty($user,"adspath")


$= olecallfunc($domain,"movehere","ss","$adspath","$NEWUSERID")


?"@SERROR"


exit


-Shawn