Skip to content
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
---
external help file: Microsoft.Online.SharePoint.PowerShell.dll-Help.xml
Module Name: Microsoft.Online.SharePoint.PowerShell
online version: https://learn.microsoft.com/powershell/module/sharepoint-online/find-spocrosstenantlongfilepathsforsiterename
schema: 2.0.0
author: vgaddam-pm
ms.author: vgaddam
ms.reviewer: jmcdowe
---

# Find-SPOCrossTenantLongFilePathsForSiteRename

## SYNOPSIS

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

## SYNTAX

```
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
```powershell
Find-SPOCrossTenantLongFilePathsForSiteRename -OldSiteUrl [https://contoso.sharepoint.com/sites/site1](https://contoso.sharepoint.com/sites/site1) -NewSiteUrl [https://fabrikam.sharepoint.com/sites/site1](https://fabrikam.sharepoint.com/sites/site1)
Copy link
Contributor

@samkabue samkabue Jul 23, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://contoso.sharepoint.com/sites/site1

Suggested change
Find-SPOCrossTenantLongFilePathsForSiteRename -OldSiteUrl [https://contoso.sharepoint.com/sites/site1](https://contoso.sharepoint.com/sites/site1) -NewSiteUrl [https://fabrikam.sharepoint.com/sites/site1](https://fabrikam.sharepoint.com/sites/site1)
https://contoso.sharepoint.com/sites/site1
``` #Closed

Copy link
Contributor

@samkabue samkabue Jul 23, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://fabrikam.sharepoint.com/sites/site1

Suggested change
Find-SPOCrossTenantLongFilePathsForSiteRename -OldSiteUrl [https://contoso.sharepoint.com/sites/site1](https://contoso.sharepoint.com/sites/site1) -NewSiteUrl [https://fabrikam.sharepoint.com/sites/site1](https://fabrikam.sharepoint.com/sites/site1)
https://fabrikam.sharepoint.com/sites/site1
``` #Closed

```
Example 1 finds

## PARAMETERS

### -NewSiteUrl
This parameter includes the source site URL.

```yaml
Type: String
Parameter Sets: (All)
Aliases:

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

### -OldSiteUrl
This parameter includes the target site URL.

```yaml
Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 0
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](http://go.microsoft.com/fwlink/?LinkID=113216).

## INPUTS

### None

## OUTPUTS

### System.Object
## NOTES

## RELATED LINKS
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,9 @@ Export user information from site user information list.
### [Export-SPOUserProfile](Export-SPOUserProfile.md)
Export user profile data to csv file.

### [Find-SPOCrossTenantLongFilePathsForSiteRename](Find-SPOCrossTenantLongFilePathsForSiteRename.md)
Identify sites with file paths over 400 characters for cross-tenant user migration.

### [Get-FileSensitivityLabelInfo](Get-FileSensitivityLabelInfo.md)
Extracts and displays the sensitivity label related information attached to an office file stored in SharePoint.

Expand Down