windows-itpro-docs/windows/deployment/usmt/usmt-migrate-user-accounts.md
2019-08-06 12:10:23 -07:00

3.4 KiB

title, description, ms.assetid, ms.reviewer, manager, ms.author, ms.prod, ms.mktglfcycl, ms.sitesec, audience, author, ms.date, ms.topic
title description ms.assetid ms.reviewer manager ms.author ms.prod ms.mktglfcycl ms.sitesec audience author ms.date ms.topic
Migrate User Accounts (Windows 10) Migrate User Accounts a3668361-43c8-4fd2-b26e-9a2deaeaeb09 laurawi greglin w10 deploy library itpro greg-lindsay 04/19/2017 article

Migrate User Accounts

By default, all users are migrated. The only way to specify which users to include and exclude is on the command line by using the User options. You cannot specify users in the migration XML files or by using the Config.xml file.

In this Topic

To migrate all user accounts and user settings

Links to detailed explanations of commands are available in the Related Topics section.

  1. Log on to the source computer as an administrator, and specify the following in a Command-Prompt window:

    scanstate \\server\share\migration\mystore /i:migdocs.xml /i:migapp.xml /o

  2. Log on to the destination computer as an administrator.

  3. Do one of the following:

    • If you are migrating domain accounts, specify:

      loadstate \\server\share\migration\mystore /i:migdocs.xml /i:migapp.xml

    • If you are migrating local accounts along with domain accounts, specify:

      loadstate \\server\share\migration\mystore /i:migdocs.xml /i:migapp.xml /lac /lae

      Note   You do not have to specify the /lae option, which enables the account that was created with the /lac option. Instead, you can create a disabled local account by specifying only the /lac option, and then a local administrator needs to enable the account on the destination computer.

To migrate two domain accounts (User1 and User2)

Links to detailed explanations of commands are available in the Related Topics section.

  1. Log on to the source computer as an administrator, and specify:

    scanstate \\server\share\migration\mystore /ue:*\* /ui:contoso\user1 /ui:fabrikam\user2 /i:migdocs.xml /i:migapp.xml /o

  2. Log on to the destination computer as an administrator.

  3. Specify the following:

    loadstate \\server\share\migration\mystore /i:migdocs.xml /i:migapp.xml

To migrate two domain accounts (User1 and User2) and move User1 from the Contoso domain to the Fabrikam domain

Links to detailed explanations of commands are available in the Related Topics section.

  1. Log on to the source computer as an administrator, and type the following at the command-line prompt:

    scanstate \\server\share\migration\mystore /ue:*\* /ui:contoso\user1 /ui:contoso\user2 /i:migdocs.xml /i:migapp.xml /o

  2. Log on to the destination computer as an administrator.

  3. Specify the following:

    loadstate \\server\share\migration\mystore /mu:contoso\user1:fabrikam\user2 /i:migdocs.xml /i:migapp.xml

Identify Users

ScanState Syntax

LoadState Syntax