diff --git a/windows/deployment/usmt/usmt-scanstate-syntax.md b/windows/deployment/usmt/usmt-scanstate-syntax.md index 3090160049..15e9ea1b2d 100644 --- a/windows/deployment/usmt/usmt-scanstate-syntax.md +++ b/windows/deployment/usmt/usmt-scanstate-syntax.md @@ -455,9 +455,9 @@ By default, all users are migrated. The only way to specify which users to inclu
USMT migrates all user accounts on the computer, unless you specifically exclude an account with either the /ue or /uel options. For this reason, you do not need to specify this option on the command line. However, if you choose to specify the /all option, you cannot also use the /ui, /ue or /uel options.
/ui:<DomainName>\<UserName>
+/ui:<DomainName>\<UserName>
or
-/ui:<ComputerName>\<LocalUserName>
/ui:<ComputerName>\<LocalUserName>
(User include)
Migrates the specified users. By default, all users are included in the migration. Therefore, this option is helpful only when used with the /ue or /uel options. You can specify multiple /ui options, but you cannot use the /ui option with the /all option. DomainName and UserName can contain the asterisk (*) wildcard character. When you specify a user name that contains spaces, you will need to surround it with quotation marks.
For example:
To include only User2 from the Fabrikam domain, type:
-/ue:*\* /ui:fabrikam\user2
To migrate all users from the Fabrikam domain, and only the user accounts from other domains that have been active or otherwise modified in the last 30 days, type:
-/uel:30 /ui:fabrikam\*
To include only User2 from the Fabrikam domain, type:
+/ue:*\* /ui:fabrikam\user2
To migrate all users from the Fabrikam domain, and only the user accounts from other domains that have been active or otherwise modified in the last 30 days, type:
+/uel:30 /ui:fabrikam\*
In this example, a user account from the Contoso domain that was last modified 2 months ago will not be migrated.
For more examples, see the descriptions of the /ue and /ui options in this table.
/uel:2002/1/15 migrates users who have logged on or been modified January 15, 2002 or afterwards.
For example:
-scanstate /i:migapp.xml /i:migdocs.xml \\server\share\migration\mystore /uel:0
scanstate /i:migapp.xml /i:migdocs.xml \\server\share\migration\mystore /uel:0
/ue:<DomainName>\<UserName>
+/ue:<DomainName>\<UserName>
-or-
-/ue:<ComputerName>\<LocalUserName>
/ue:<ComputerName>\<LocalUserName>
(User exclude)
Excludes the specified users from the migration. You can specify multiple /ue options. You cannot use this option with the /all option. <DomainName> and <UserName> can contain the asterisk (*) wildcard character. When you specify a user name that contains spaces, you need to surround it with quotation marks.
For example:
-scanstate /i:migdocs.xml /i:migapp.xml \\server\share\migration\mystore /ue:contoso\user1
scanstate /i:migdocs.xml /i:migapp.xml \\server\share\migration\mystore /ue:contoso\user1
Exclude all domain users.
/ue:Domain\*
/ue:Domain\*
Exclude all local users.
/ue:%computername%\*
/ue:%computername%\*
Exclude users in all domains named User1, User2, and so on.
/ue:*\user*
/ue:*\user*
Include only User2 from the Fabrikam domain and exclude all other users.
/ue:*\* /ui:fabrikam\user2
/ue:*\* /ui:fabrikam\user2
Include only the local user named User1 and exclude all other users.
/ue:*\* /ui:user1
/ue:*\* /ui:user1
Include only the domain users from Contoso, except Contoso\User1.
This behavior cannot be completed using a single command. Instead, to migrate this set of users, you will need to specify the following:
On the ScanState command line, type: /ue:*\* /ui:contoso\*
On the ScanState command line, type: /ue:*\* /ui:contoso\*
On the LoadState command line, type: /ue:contoso\user1
Include only local (non-domain) users.
/ue:*\* /ui:%computername%\*
/ue:*\* /ui:%computername%\*