Skip to content

Commit 6eef4ec

Browse files
authored
Merge pull request MicrosoftDocs#2436 from tseward/patch-15
Update Move-SPUser.md
2 parents 6e20de9 + f241ca1 commit 6eef4ec

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sharepoint/sharepoint-ps/sharepoint-server/Move-SPUser.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,23 +30,23 @@ For permissions and the most current information about Windows PowerShell for Sh
3030

3131
### ------------------EXAMPLE------------------
3232
```
33-
C:\PS>$user = Get-SPUser -Identity "DOMAIN\JaneDoe" -Web http://webUrl
33+
$user = Get-SPUser -Identity "DOMAIN\JaneDoe" -Web http://webUrl
3434
Move-SPUser -Identity $user -NewAlias "Domain\JaneSmith" -IgnoreSid
3535
```
3636

3737
This example migrates DOMAIN\JaneDoe to the new account of DOMAIN\JaneSmith.
3838

3939
### ------------------EXAMPLE 2------------------
4040
```
41-
C:\PS>$user = Get-SPUser -Identity "DomainA\JaneDoe" -Web http://webUrl
41+
$user = Get-SPUser -Identity "DomainA\JaneDoe" -Web http://webUrl
4242
Move-SPUser -Identity $user -NewAlias "DomainB\JaneDoe"
4343
```
4444

4545
This example migrates DOMAIN\JaneDoe from DomainA to the new account of DOMAINB\JaneDoe in DomainB with SID History enabled.
4646

4747
### ------------------EXAMPLE 3------------------
4848
```
49-
C:\PS>$user = Get-SPUser -Identity "i:0#.w|DOMAIN\JaneDoe" -Web http://webUrl
49+
$user = Get-SPUser -Identity "i:0#.w|DOMAIN\JaneDoe" -Web http://webUrl
5050
Move-SPUser -Identity $user -NewAlias "i:0#.W|Domain\JaneSmith" -IgnoreSid
5151
```
5252

0 commit comments

Comments
 (0)