Skip to content

Latest commit

 

History

History
211 lines (144 loc) · 5.26 KB

File metadata and controls

211 lines (144 loc) · 5.26 KB
external help file Microsoft.Online.SharePoint.PowerShell.dll-Help.xml
Module Name Microsoft.Online.SharePoint.PowerShell
online version https://learn.microsoft.com/powershell/module/microsoft.online.sharepoint.powershell/start-spouserandcontentmove
applicable SharePoint Online
title Start-SPOUserAndContentMove
schema 2.0.0
author samkabue
ms.author speedta
ms.reviewer

Start-SPOUserAndContentMove

SYNOPSIS

Starts the ability to move a user closer to their sites.

SYNTAX

Start-SPOUserAndContentMove [-UserPrincipalName] <String> [-DestinationDataLocation] <String>
 [[-PreferredMoveBeginDate] <DateTime>] [[-PreferredMoveEndDate] <DateTime>] [[-Notify] <String>]
 [[-Reserved] <String>] [-ValidationOnly] [<CommonParameters>]

DESCRIPTION

This cmdlet applies to Multi-Geo tenants and it is designed to move user profiles and their corresponding OneDrive personal sites across geo locations. These cmdlets may only be run by a SharePoint administrator or above, who is connected to the SharePoint administration center of the geo location where the user is currently hosted.

EXAMPLES

EXAMPLE 1

Start-SPOUserAndContentMove -UserPrincipalName username@contoso.onmicrosoft.com -DestinationDataLocation EUR

This example moves the user username@contoso.onmicrosoft.com from their current location, to the European location (EUR).

EXAMPLE 2

Start-SPOUserAndContentMove -UserPrincipalName username@contoso.onmicrosoft.com -DestinationDataLocation JPN

This example moves the user username@contoso.onmicrosoft.com from their current location, to the Japanese location (JPN).

EXAMPLE 3

Start-SPOUserAndContentMove -UserPrincipalName username@contoso.onmicrosoft.com -DestinationDataLocation EUR -PreferredMoveBeginDate ((Get-Date).AddHours(1)) -PreferredMoveEndDate ((Get-Date).AddHour(12))

This example moves the user username@contoso.onmicrosoft.com from their current location, to the European location (EUR), with a preferred start move date. Doing so is recommended for administrators who wish to plan their user moves outside business hours and on weekends.

PARAMETERS

-DestinationDataLocation

Applicable: SharePoint Online

Defines the destination location where you want to move the user. Note that you may only move a user to their preferred data location. Thus before moving a user, you must change their preferred data location.

Type: System.String
Parameter Sets: (All)
Aliases:

Required: True
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Notify

Applicable: SharePoint Online

Provides an SPO notification that the user is being moved.

Type: System.String
Parameter Sets: (All)
Aliases:

Required: False
Position: 5
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-PreferredMoveBeginDate

Applicable: SharePoint Online

Specifies what is the preferred date and time to begin the move.

Type: System.DateTime
Parameter Sets: (All)
Aliases:

Required: False
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-PreferredMoveEndDate

Applicable: SharePoint Online

Specifies what is the preferred date and time to stop stop the move. Recommened when administrators are scripting large scale moves that they wish to complete within a timeframe.

Type: System.DateTime
Parameter Sets: (All)
Aliases:

Required: False
Position: 4
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Reserved

Applicable: SharePoint Online

Reserved.

Type: System.String
Parameter Sets: (All)
Aliases:

Required: False
Position: 6
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-UserPrincipalName

Applicable: SharePoint Online

UserPrincipalName or UPN defined for the specific user on the SPO tenant

Type: System.String
Parameter Sets: (All)
Aliases:

Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-ValidationOnly

Applicable: SharePoint Online

Use this parameter to validate if the user is able to be moved. This parameter is recommended for any user move.

Type: System.Management.Automation.SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: 7
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

None

OUTPUTS

System.Object

NOTES

RELATED LINKS

Getting started with SharePoint Online Management Shell

Get-SPOAppErrors

Start-SPOSiteRename

Start-SPOUserAndContentMove

Stop-SPOUserAndContentMove

Get-SPOUserAndContentMoveState