Commands › SharePoint Online

Find-SPOCrossTenantLongFilePathsForSiteRename

SharePoint Online Microsoft.Online.SharePoint.PowerShell Find-*

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

Quick start script

# Find-SPOCrossTenantLongFilePathsForSiteRename — quick start (serv365.ai)
# 1. Connect (app-only shown; interactive: omit the certificate parameters)
Connect-SPOService -Url https://$org-admin.sharepoint.com

# 2. Run and inspect
Find-SPOCrossTenantLongFilePathsForSiteRename -NewSiteUrl <String> -OldSiteUrl <String> | Format-List

# 3. Export for evidence / drift tracking
Find-SPOCrossTenantLongFilePathsForSiteRename | Export-Clixml .\SPOCrossTenantLongFilePathsForSiteRename-$(Get-Date -Format yyyyMMdd).xml

Syntax

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

Parameters (2)

ParameterTypeRequiredWhat it controls
-NewSiteUrl String yes Specifies the new URL to assign to the SharePoint site after the rename.
-OldSiteUrl String yes Specifies the original URL of the SharePoint site before the rename.

Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.