Forum Discussion
Joe_Grover
Feb 06, 2026Copper Contributor
Renaming a folder with too many files
One of our teams has a Team/SharePoint site with an archive folder. Everything in there is old files, and they'd like to rename the folder. However, we get the error that it exceeds the list view thr...
DaveMehr365
Mar 13, 2026MVP
Hi Joe_Grover
the threshold is an library "issue", no new views with filters helps in this case.
Maybe you can try to rename the folder with PowerShell, like in this post:
$SiteURL = "https://abc.sharepoint.com/sites/MeredithTest"
$FolderURL= "lib1/a/11"
$FolderNewName ="aa"
$FileURL= "lib1/a/aa/Document3.docx"
$NewFileName ="wenjian.docx"
#Connect to PnP Online
Connect-PnPOnline -Url $SiteURL -Credentials (Get-Credential)
#Rename the Folder
Rename-PnPFolder -Folder $FolderURL -TargetFolderName $FolderNewName
#Rename the File
Rename-PnPFile -SiteRelativeUrl $FileURL -TargetFileName $NewFileName -Force
Best, Dave