Table of contents
TOC
Collapse the table of content
Expand the table of content

Move-PnPFolder

Bert Jansen|Last Updated: 2/20/2017
|
1 Contributor

Move a folder to another location in the current web

Syntax

Move-PnPFolder -Folder <String>
               -TargetFolder <String>
               [-Web <WebPipeBind>]

Parameters

ParameterTypeRequiredDescription
FolderStringTrueThe folder to move
TargetFolderStringTrueThe new parent location to which the folder should be moved to
WebWebPipeBindFalseThe web to apply the command to. Omit this parameter to use the current web.

Examples

Example 1

PS:> Move-PnPFolder -Folder Documents/Reports -TargetFolder 'Archived Reports'

This will move the folder Reports in the Documents library to the 'Archived Reports' library

Example 2

PS:> Move-PnPFolder -Folder 'Shared Documents/Reports/2016/Templates' -TargetFolder 'Shared Documents/Reports'

This will move the folder Templates to the new location in 'Shared Documents/Reports'

© 2017 Microsoft