File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
sharepoint/sharepoint-ps/sharepoint-server Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -30,23 +30,23 @@ For permissions and the most current information about Windows PowerShell for Sh
30
30
31
31
### ------------------EXAMPLE------------------
32
32
```
33
- C:\PS> $user = Get-SPUser -Identity "DOMAIN\JaneDoe" -Web http://webUrl
33
+ $user = Get-SPUser -Identity "DOMAIN\JaneDoe" -Web http://webUrl
34
34
Move-SPUser -Identity $user -NewAlias "Domain\JaneSmith" -IgnoreSid
35
35
```
36
36
37
37
This example migrates DOMAIN\JaneDoe to the new account of DOMAIN\JaneSmith.
38
38
39
39
### ------------------EXAMPLE 2------------------
40
40
```
41
- C:\PS> $user = Get-SPUser -Identity "DomainA\JaneDoe" -Web http://webUrl
41
+ $user = Get-SPUser -Identity "DomainA\JaneDoe" -Web http://webUrl
42
42
Move-SPUser -Identity $user -NewAlias "DomainB\JaneDoe"
43
43
```
44
44
45
45
This example migrates DOMAIN\JaneDoe from DomainA to the new account of DOMAINB\JaneDoe in DomainB with SID History enabled.
46
46
47
47
### ------------------EXAMPLE 3------------------
48
48
```
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
50
50
Move-SPUser -Identity $user -NewAlias "i:0#.W|Domain\JaneSmith" -IgnoreSid
51
51
```
52
52
You can’t perform that action at this time.
0 commit comments