Share via


Find-SPOCrossTenantLongFilePathsForSiteRename

Identify sites with file paths over 400 characters for cross-tenant user migration.

Syntax

Default (Default)

Find-SPOCrossTenantLongFilePathsForSiteRename

    [-OldSiteUrl <String>]
    [-NewSiteUrl <String>]
    [<CommonParameters>]

Description

During SharePoint cross-tenant user migration, file paths from the source tenant must be 400 characters or fewer after merging with the target tenant. This cmdlet helps you identify sites that exceed this limit.

Examples

Example 1

Find-SPOCrossTenantLongFilePathsForSiteRename -OldSiteUrl https://contoso.sharepoint.com/sites/site1 -NewSiteUrl https://fabrikam.sharepoint.com/sites/site1

Example 1 looks through the site inputted to find file paths that exceed the 400 character limit.

Parameters

-NewSiteUrl

Specifies the new URL to assign to the SharePoint site after the rename.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:1
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-OldSiteUrl

Specifies the original URL of the SharePoint site before the rename.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:0
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

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

Inputs

None

Outputs

System.Object