Renames a folder
Rename-PnPFolder -Folder <String>
-TargetFolderName <String>
[-Web <WebPipeBind>]
Parameter | Type | Required | Description |
---|---|---|---|
Folder | String | True | The folder to rename |
TargetFolderName | String | True | The new folder name |
Web | WebPipeBind | False | The web to apply the command to. Omit this parameter to use the current web. |
PS:> Rename-PnPFolder -Folder Documents/Reports -TargetFolderName 'Archived Reports'
This will rename the folder Reports in the Documents library to 'Archived Reports'