From 035b75a7b7770a7d35206ded10566d53f9504867 Mon Sep 17 00:00:00 2001 From: Vaibhav Gaddam <188270566+vgaddam-pm@users.noreply.github.com> Date: Tue, 22 Jul 2025 17:41:43 -0500 Subject: [PATCH 1/8] Create Find-SPOCrossTenantLongFilePathsForSiteRename.md --- ...POCrossTenantLongFilePathsForSiteRename.md | 103 ++++++++++++++++++ 1 file changed, 103 insertions(+) create mode 100644 sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Find-SPOCrossTenantLongFilePathsForSiteRename.md diff --git a/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Find-SPOCrossTenantLongFilePathsForSiteRename.md b/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Find-SPOCrossTenantLongFilePathsForSiteRename.md new file mode 100644 index 000000000..1f02b25a0 --- /dev/null +++ b/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Find-SPOCrossTenantLongFilePathsForSiteRename.md @@ -0,0 +1,103 @@ +--- +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 + +Finds sites that exceed the 400 character limit for Cross Tenant User Migration moves. + +## SYNTAX + +``` +Find-SPOCrossTenantLongFilePathsForSiteRename + [-OldSiteUrl ] + [-NewSiteUrl ] + [] +``` + +## DESCRIPTION +SharePoint Cross Tenant User Migration has a restriction where the source tenant site's file path should not exceed 400 characters in length after merging to the target side. This cmdlet finds sites that exceed the 400 character limit. + +## EXAMPLES + +### Example 1 +```powershell +PS C:\Users\vmadministrator> $SourceSiteUrl = "https://prepspo.spgrid.com/sites/CommTest1" +PS C:\Users\vmadministrator> $TargetSiteUrl = "https://Tenanta24a16f05d204f3bafbfd10ceb259ab9.spgrid.com/sites/CommTest1_longerUrlFor400CharsLimitation" +PS C:\Users\vmadministrator> Find-SPOCrossTenantLongFilePathsForSiteRename -OldSiteUrl $SourceSiteUrl -NewSiteUrl $TargetSiteUrl +``` +Output: + +List of internal components with too long paths for Cross-tenant migration of the source site [https://prepspo.spgrid.com/sites/CommTest1] +into the target relative url [/sites/CommTest1_longerUrlFor400CharsLimitation] with the relative delta [31]: + +1) - sites/CommTest1/Shared Documents/Level1LongFolderNameFor400CharLimitValidationTesting/Level2LongFolderNameFor400CharLimitValidationTesting/Level3LongFolderNameFor400CharLimitValidationTesting/Level4LongFolderNameFor400CharLimitValidationTesting/Level5LongFolderNameFor400CharLimitValidationTesting/Level6LongFolderNameFor400CharLimitValidationTesting/Level7LongFolderNameFor400CharLimit/a.txt +2) - sites/CommTest1/Shared Documents/Level1LongFolderNameFor400CharLimitValidationTesting/Level2LongFolderNameFor400CharLimitValidationTesting/Level3LongFolderNameFor400CharLimitValidationTesting/Level4LongFolderNameFor400CharLimitValidationTesting/Level5LongFolderNameFor400CharLimitValidationTesting/Level6LongFolderNameFor400CharLimitValidationTesting/Level7LongFolderNameFor400CharLimit + +### Example 2 + +```powershell +PS C:\Users\vmadministrator> $SourceSiteUrl = "https://prepspo.spgrid.com/sites/CommTest1" +PS C:\Users\vmadministrator> $TargetSiteUrl = "https://Tenanta24a16f05d204f3bafbfd10ceb259ab9.spgrid.com/sites/CommTest1_longer" +PS C:\Users\vmadministrator> Find-SPOCrossTenantLongFilePathsForSiteRename -OldSiteUrl $SourceSiteUrl -NewSiteUrl $TargetSiteUrl +``` +Output: + +List of internal components with too long paths for Cross-tenant migration of the source site [https://prepspo.spgrid.com/sites/CommTest1] +into the target relative url [/sites/CommTest1_longer] with the relative delta [7]: + +No problem found + +## 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 From a1ee2c97dad7a0eacb1e02824dddf88a5659ba06 Mon Sep 17 00:00:00 2001 From: Vaibhav Gaddam <188270566+vgaddam-pm@users.noreply.github.com> Date: Tue, 22 Jul 2025 17:49:42 -0500 Subject: [PATCH 2/8] Update Microsoft.Online.SharePoint.PowerShell.md --- .../Microsoft.Online.SharePoint.PowerShell.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Microsoft.Online.SharePoint.PowerShell.md b/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Microsoft.Online.SharePoint.PowerShell.md index 4832c604b..5a5f6ec3b 100644 --- a/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Microsoft.Online.SharePoint.PowerShell.md +++ b/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Microsoft.Online.SharePoint.PowerShell.md @@ -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) +Finds sites that exceed 400 character limit for Cross Tenant User Migration moves. + ### [Get-FileSensitivityLabelInfo](Get-FileSensitivityLabelInfo.md) Extracts and displays the sensitivity label related information attached to an office file stored in SharePoint. From 93670d663cfa4157727ffb2e29b8f605dd6d4261 Mon Sep 17 00:00:00 2001 From: Vaibhav Gaddam <188270566+vgaddam-pm@users.noreply.github.com> Date: Wed, 23 Jul 2025 13:30:18 -0500 Subject: [PATCH 3/8] Update Find-SPOCrossTenantLongFilePathsForSiteRename.md --- ...POCrossTenantLongFilePathsForSiteRename.md | 34 ++++--------------- 1 file changed, 6 insertions(+), 28 deletions(-) diff --git a/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Find-SPOCrossTenantLongFilePathsForSiteRename.md b/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Find-SPOCrossTenantLongFilePathsForSiteRename.md index 1f02b25a0..a4eb5a8fc 100644 --- a/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Find-SPOCrossTenantLongFilePathsForSiteRename.md +++ b/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Find-SPOCrossTenantLongFilePathsForSiteRename.md @@ -12,7 +12,7 @@ ms.reviewer: jmcdowe ## SYNOPSIS -Finds sites that exceed the 400 character limit for Cross Tenant User Migration moves. +Identify sites with file paths over 400 characters for cross-tenant user migration. ## SYNTAX @@ -24,42 +24,20 @@ Find-SPOCrossTenantLongFilePathsForSiteRename ``` ## DESCRIPTION -SharePoint Cross Tenant User Migration has a restriction where the source tenant site's file path should not exceed 400 characters in length after merging to the target side. This cmdlet finds sites that exceed the 400 character limit. +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 -PS C:\Users\vmadministrator> $SourceSiteUrl = "https://prepspo.spgrid.com/sites/CommTest1" -PS C:\Users\vmadministrator> $TargetSiteUrl = "https://Tenanta24a16f05d204f3bafbfd10ceb259ab9.spgrid.com/sites/CommTest1_longerUrlFor400CharsLimitation" -PS C:\Users\vmadministrator> Find-SPOCrossTenantLongFilePathsForSiteRename -OldSiteUrl $SourceSiteUrl -NewSiteUrl $TargetSiteUrl +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) ``` -Output: - -List of internal components with too long paths for Cross-tenant migration of the source site [https://prepspo.spgrid.com/sites/CommTest1] -into the target relative url [/sites/CommTest1_longerUrlFor400CharsLimitation] with the relative delta [31]: - -1) - sites/CommTest1/Shared Documents/Level1LongFolderNameFor400CharLimitValidationTesting/Level2LongFolderNameFor400CharLimitValidationTesting/Level3LongFolderNameFor400CharLimitValidationTesting/Level4LongFolderNameFor400CharLimitValidationTesting/Level5LongFolderNameFor400CharLimitValidationTesting/Level6LongFolderNameFor400CharLimitValidationTesting/Level7LongFolderNameFor400CharLimit/a.txt -2) - sites/CommTest1/Shared Documents/Level1LongFolderNameFor400CharLimitValidationTesting/Level2LongFolderNameFor400CharLimitValidationTesting/Level3LongFolderNameFor400CharLimitValidationTesting/Level4LongFolderNameFor400CharLimitValidationTesting/Level5LongFolderNameFor400CharLimitValidationTesting/Level6LongFolderNameFor400CharLimitValidationTesting/Level7LongFolderNameFor400CharLimit - -### Example 2 - -```powershell -PS C:\Users\vmadministrator> $SourceSiteUrl = "https://prepspo.spgrid.com/sites/CommTest1" -PS C:\Users\vmadministrator> $TargetSiteUrl = "https://Tenanta24a16f05d204f3bafbfd10ceb259ab9.spgrid.com/sites/CommTest1_longer" -PS C:\Users\vmadministrator> Find-SPOCrossTenantLongFilePathsForSiteRename -OldSiteUrl $SourceSiteUrl -NewSiteUrl $TargetSiteUrl -``` -Output: - -List of internal components with too long paths for Cross-tenant migration of the source site [https://prepspo.spgrid.com/sites/CommTest1] -into the target relative url [/sites/CommTest1_longer] with the relative delta [7]: - -No problem found +Example 1 finds ## PARAMETERS ### -NewSiteUrl -This parameter includes the source site URL +This parameter includes the source site URL. ```yaml Type: String @@ -74,7 +52,7 @@ Accept wildcard characters: False ``` ### -OldSiteUrl -This parameter includes the target site URL +This parameter includes the target site URL. ```yaml Type: String From 33a4b5022981d5673b33ce105a139d4d747ab0f0 Mon Sep 17 00:00:00 2001 From: Vaibhav Gaddam <188270566+vgaddam-pm@users.noreply.github.com> Date: Wed, 23 Jul 2025 13:30:42 -0500 Subject: [PATCH 4/8] Update Microsoft.Online.SharePoint.PowerShell.md --- .../Microsoft.Online.SharePoint.PowerShell.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Microsoft.Online.SharePoint.PowerShell.md b/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Microsoft.Online.SharePoint.PowerShell.md index 5a5f6ec3b..b87fa2ad9 100644 --- a/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Microsoft.Online.SharePoint.PowerShell.md +++ b/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Microsoft.Online.SharePoint.PowerShell.md @@ -139,7 +139,7 @@ Export user information from site user information list. Export user profile data to csv file. ### [Find-SPOCrossTenantLongFilePathsForSiteRename](Find-SPOCrossTenantLongFilePathsForSiteRename.md) -Finds sites that exceed 400 character limit for Cross Tenant User Migration moves. +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. From 4961be82b7677e5b5612b2f19cdec26dbe0a005c Mon Sep 17 00:00:00 2001 From: Vaibhav Gaddam <188270566+vgaddam-pm@users.noreply.github.com> Date: Wed, 23 Jul 2025 13:52:01 -0500 Subject: [PATCH 5/8] Update Find-SPOCrossTenantLongFilePathsForSiteRename.md --- .../Find-SPOCrossTenantLongFilePathsForSiteRename.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Find-SPOCrossTenantLongFilePathsForSiteRename.md b/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Find-SPOCrossTenantLongFilePathsForSiteRename.md index a4eb5a8fc..7f6b6bc98 100644 --- a/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Find-SPOCrossTenantLongFilePathsForSiteRename.md +++ b/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Find-SPOCrossTenantLongFilePathsForSiteRename.md @@ -32,12 +32,12 @@ During SharePoint cross-tenant user migration, file paths from the source tenant ```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) ``` -Example 1 finds +Example 1 looks through the site inputted to find file paths that exceed the 400 character limit. ## PARAMETERS ### -NewSiteUrl -This parameter includes the source site URL. +Specifies which source site URL to look through. ```yaml Type: String @@ -52,7 +52,7 @@ Accept wildcard characters: False ``` ### -OldSiteUrl -This parameter includes the target site URL. +Specifies which target site URL to look through. ```yaml Type: String From 88dd1bc047f78360f6ed9195819a339e7fc3df36 Mon Sep 17 00:00:00 2001 From: Vaibhav Gaddam <188270566+vgaddam-pm@users.noreply.github.com> Date: Wed, 23 Jul 2025 20:45:05 -0500 Subject: [PATCH 6/8] Update sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Find-SPOCrossTenantLongFilePathsForSiteRename.md Co-authored-by: Sam M. Kabue --- .../Find-SPOCrossTenantLongFilePathsForSiteRename.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Find-SPOCrossTenantLongFilePathsForSiteRename.md b/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Find-SPOCrossTenantLongFilePathsForSiteRename.md index 7f6b6bc98..b4058ce0a 100644 --- a/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Find-SPOCrossTenantLongFilePathsForSiteRename.md +++ b/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Find-SPOCrossTenantLongFilePathsForSiteRename.md @@ -30,7 +30,7 @@ During SharePoint cross-tenant user migration, file paths from the source tenant ### 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) +https://fabrikam.sharepoint.com/sites/site1 ``` Example 1 looks through the site inputted to find file paths that exceed the 400 character limit. From 7fd35bc290916899c3b39ec663e079e193294fa9 Mon Sep 17 00:00:00 2001 From: Vaibhav Gaddam <188270566+vgaddam-pm@users.noreply.github.com> Date: Wed, 23 Jul 2025 20:47:53 -0500 Subject: [PATCH 7/8] Update Find-SPOCrossTenantLongFilePathsForSiteRename.md --- .../Find-SPOCrossTenantLongFilePathsForSiteRename.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Find-SPOCrossTenantLongFilePathsForSiteRename.md b/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Find-SPOCrossTenantLongFilePathsForSiteRename.md index b4058ce0a..f406cb1a3 100644 --- a/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Find-SPOCrossTenantLongFilePathsForSiteRename.md +++ b/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Find-SPOCrossTenantLongFilePathsForSiteRename.md @@ -37,7 +37,7 @@ Example 1 looks through the site inputted to find file paths that exceed the 400 ## PARAMETERS ### -NewSiteUrl -Specifies which source site URL to look through. +Specifies the new URL to assign to the SharePoint site after the rename. ```yaml Type: String @@ -52,7 +52,7 @@ Accept wildcard characters: False ``` ### -OldSiteUrl -Specifies which target site URL to look through. +Specifies the original URL of the SharePoint site before the rename. ```yaml Type: String From 56f5781e053d9eac0ab2d3cd4793c35262f9dfbd Mon Sep 17 00:00:00 2001 From: Vaibhav Gaddam <188270566+vgaddam-pm@users.noreply.github.com> Date: Wed, 23 Jul 2025 22:16:09 -0500 Subject: [PATCH 8/8] Update Find-SPOCrossTenantLongFilePathsForSiteRename.md --- .../Find-SPOCrossTenantLongFilePathsForSiteRename.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Find-SPOCrossTenantLongFilePathsForSiteRename.md b/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Find-SPOCrossTenantLongFilePathsForSiteRename.md index f406cb1a3..1033a770d 100644 --- a/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Find-SPOCrossTenantLongFilePathsForSiteRename.md +++ b/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Find-SPOCrossTenantLongFilePathsForSiteRename.md @@ -30,7 +30,7 @@ During SharePoint cross-tenant user migration, file paths from the source tenant ### Example 1 ```powershell -https://fabrikam.sharepoint.com/sites/site1 +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.