2024年1月9日发(作者:)

工作组计算机入域后用户文件迅速迁移方法

从工作组加入到域环境时,用户加入域后系统将会重新建立域用户配置文件,原有使用用户配置文件都全部没有了,需要手工拷贝及设定,相当浪费时间。

moveuser工具可以帮助我们方便的把本地用户的profile转移到域用户下面,对于大量转移有很大的帮助。转移包含:桌面、我的文档、OE、outlook等设定、打印机等等。

注:这里只探讨用户转移时更快速的实现用户文件、配置迁移方式,对于域管理不作讨论,因为有可能ADMT3.0有更完善的方法。

MoveUser官方解释:

MoveUser uses the following syntax:

moveuser [Domain]OldUserAccount [Domain]NewUserAccount [/c:Computer] [/k] [/y]

Parameters

OldUserAccount

Specifies a user who has a local profile. Specify domain and user names in the Domain/User or the user principal name (UPN) format. If Domain is omitted, OldUserAccount is assumed t

o belong to the domain of the current user.

NewUserAccount

Specifies the user who will own the OldUserAccount profile. This account must already exist. Specify domain and user names in the Domain/User or the user principal name (UPN) format. If Domain is omitted, NewUserAccount is assumed to belong to the domain of the current user.

/c:Computer

Specifies a remote computer on which to make the changes. If omitted, the local computer is assumed. Use this parameter

to move the user profile to a new computer.

/k

Specifies that OldUserAccount resides in the local database of the computer and should not be deleted after the profile is

moved. 保留本机帐户。

/y

Directs MoveUser to overwrite any existing profiles. 完全覆盖配置。

本地工作组目录至域用户 操作步骤:

1、 本地用户使用netdom登陆入域;(也可在我的电脑右键属性

中设置)

2、 重启后,暂不要用本机域用户登陆,使用域管理员帐户登陆;

3、 拷贝moveuser执行文件到x:windowssystem32 ;

4、 moveuser 本地用户名 域域用户 /y /k ;

5、 重新启动,使用本机域用户登陆; 6、操作完成。

本地用户1迁移至本地用户2 操作步骤:

1、使用具有超级管理员的用户登陆本机;

2、拷贝moveuser执行文件到x:windowssystem32;

3、moveuser 本地用户名1 本地用户名2 /y /k ;

4、操作完成。