MOVEUSER.exe (Resource Kit)
Move a user account into a domain or edit an NT username.
Syntax MOVEUSER [DOMAIN/]user1 [DOMAIN/]user2 [/c:computer] [/k] [/y] Key: user1 The existing user (who has a local profile) Specify domain users in 'DOMAIN/user' format or just 'user' for a local account. user2 The user acount that will inherit the user1 profile. This account must already exist. Specify domain users in DOMAIN/user format specify only user for local accounts. /c:computer The computer on which to make the changes. /k Keep user account user1 (only applies to local users) /y Overwrite an existing profile for user2.
Notes
To use MOVEUSER, you must be logged in with admin rights to create and modify user accounts on both the source and target machine.
MOVEUSER is particularly useful for moving local user accounts into a domain.
Examples
MOVEUSER fred MyDomain\newfred
Or if the account 'fred' is on the remote PC called 'wks0123'
MOVEUSER fred MyDomain\newfred /c:\\wks0123
"You don't sew with a fork, so I see no reason to eat
with knitting needles" - Miss Piggy, on eating Chinese Food
Related:
Q838191- RestrictRemoteClients registry keys for MOVEUSER under XP sp2
SHUTDOWN - Shutdown the computer
ADMT - Active Directory Migration Tool (domain to domain)