MoveUser.exe from Windows 2000 Resource Kit allows to change profile security and owner from command line. Syntax is following:
moveuser [DOMAIN\]user1 [DOMAIN\]user2 [/c:computer] [/k] [/y] [/?]
Where:
user1
specifies a user who has a local profile. Specify domain users in DOMAIN\user format; specify only user for local accounts.
user2
specifies the user who will own the user1 profile. This user account must already exist in domain. Specify domain users in DOMAIN\user format; specify only user if account is local.
/c:computer
specifies the computer on which to make the changes.
/k
specifies that if user1 is a local user, then the user account should be kept.
/y
allows overwriting an existing profile.
/?
displays this syntax at the command prompt
Example: moveuser DOM1\JohnDoe DOM2\JohnDoe /y
Good Luck,
Vagab0nd