Skip to content

Commit 035b75a

Browse files
authored
Create Find-SPOCrossTenantLongFilePathsForSiteRename.md
1 parent 21c7a80 commit 035b75a

File tree

1 file changed

+103
-0
lines changed

1 file changed

+103
-0
lines changed
Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
1+
---
2+
external help file: Microsoft.Online.SharePoint.PowerShell.dll-Help.xml
3+
Module Name: Microsoft.Online.SharePoint.PowerShell
4+
online version: https://learn.microsoft.com/powershell/module/sharepoint-online/find-spocrosstenantlongfilepathsforsiterename
5+
schema: 2.0.0
6+
author: vgaddam-pm
7+
ms.author: vgaddam
8+
ms.reviewer: jmcdowe
9+
---
10+
11+
# Find-SPOCrossTenantLongFilePathsForSiteRename
12+
13+
## SYNOPSIS
14+
15+
Finds sites that exceed the 400 character limit for Cross Tenant User Migration moves.
16+
17+
## SYNTAX
18+
19+
```
20+
Find-SPOCrossTenantLongFilePathsForSiteRename
21+
[-OldSiteUrl <String>]
22+
[-NewSiteUrl <String>]
23+
[<CommonParameters>]
24+
```
25+
26+
## DESCRIPTION
27+
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.
28+
29+
## EXAMPLES
30+
31+
### Example 1
32+
```powershell
33+
PS C:\Users\vmadministrator> $SourceSiteUrl = "https://prepspo.spgrid.com/sites/CommTest1"
34+
PS C:\Users\vmadministrator> $TargetSiteUrl = "https://Tenanta24a16f05d204f3bafbfd10ceb259ab9.spgrid.com/sites/CommTest1_longerUrlFor400CharsLimitation"
35+
PS C:\Users\vmadministrator> Find-SPOCrossTenantLongFilePathsForSiteRename -OldSiteUrl $SourceSiteUrl -NewSiteUrl $TargetSiteUrl
36+
```
37+
Output:
38+
39+
List of internal components with too long paths for Cross-tenant migration of the source site [https://prepspo.spgrid.com/sites/CommTest1]
40+
into the target relative url [/sites/CommTest1_longerUrlFor400CharsLimitation] with the relative delta [31]:
41+
42+
1) - sites/CommTest1/Shared Documents/Level1LongFolderNameFor400CharLimitValidationTesting/Level2LongFolderNameFor400CharLimitValidationTesting/Level3LongFolderNameFor400CharLimitValidationTesting/Level4LongFolderNameFor400CharLimitValidationTesting/Level5LongFolderNameFor400CharLimitValidationTesting/Level6LongFolderNameFor400CharLimitValidationTesting/Level7LongFolderNameFor400CharLimit/a.txt
43+
2) - sites/CommTest1/Shared Documents/Level1LongFolderNameFor400CharLimitValidationTesting/Level2LongFolderNameFor400CharLimitValidationTesting/Level3LongFolderNameFor400CharLimitValidationTesting/Level4LongFolderNameFor400CharLimitValidationTesting/Level5LongFolderNameFor400CharLimitValidationTesting/Level6LongFolderNameFor400CharLimitValidationTesting/Level7LongFolderNameFor400CharLimit
44+
45+
### Example 2
46+
47+
```powershell
48+
PS C:\Users\vmadministrator> $SourceSiteUrl = "https://prepspo.spgrid.com/sites/CommTest1"
49+
PS C:\Users\vmadministrator> $TargetSiteUrl = "https://Tenanta24a16f05d204f3bafbfd10ceb259ab9.spgrid.com/sites/CommTest1_longer"
50+
PS C:\Users\vmadministrator> Find-SPOCrossTenantLongFilePathsForSiteRename -OldSiteUrl $SourceSiteUrl -NewSiteUrl $TargetSiteUrl
51+
```
52+
Output:
53+
54+
List of internal components with too long paths for Cross-tenant migration of the source site [https://prepspo.spgrid.com/sites/CommTest1]
55+
into the target relative url [/sites/CommTest1_longer] with the relative delta [7]:
56+
57+
No problem found
58+
59+
## PARAMETERS
60+
61+
### -NewSiteUrl
62+
This parameter includes the source site URL
63+
64+
```yaml
65+
Type: String
66+
Parameter Sets: (All)
67+
Aliases:
68+
69+
Required: True
70+
Position: 1
71+
Default value: None
72+
Accept pipeline input: False
73+
Accept wildcard characters: False
74+
```
75+
76+
### -OldSiteUrl
77+
This parameter includes the target site URL
78+
79+
```yaml
80+
Type: String
81+
Parameter Sets: (All)
82+
Aliases:
83+
84+
Required: True
85+
Position: 0
86+
Default value: None
87+
Accept pipeline input: False
88+
Accept wildcard characters: False
89+
```
90+
91+
### CommonParameters
92+
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).
93+
94+
## INPUTS
95+
96+
### None
97+
98+
## OUTPUTS
99+
100+
### System.Object
101+
## NOTES
102+
103+
## RELATED LINKS

0 commit comments

Comments
 (0)