Rename-PnPFolder
SYNOPSIS
Renames a folder
SYNTAX
Rename-PnPFolder -Folder <FolderPipeBind> -TargetFolderName <String> [-Connection <PnPConnection>]
DESCRIPTION
Allows to rename a folder.
EXAMPLES
EXAMPLE 1
Rename-PnPFolder -Folder Documents/Reports -TargetFolderName 'Archived Reports'
This will rename the folder Reports in the Documents library to 'Archived Reports'
PARAMETERS
-Connection
Optional connection to be used by the cmdlet. Retrieve the value for this parameter by either specifying -ReturnConnection on Connect-PnPOnline or by executing Get-PnPConnection.
Type: PnPConnection
Parameter Sets: (All)
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Folder
The folder to rename
Type: FolderPipeBind
Parameter Sets: (All)
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-TargetFolderName
The new folder name
Type: String
Parameter Sets: (All)
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False