Add-PnPFolder
SYNOPSIS
Creates a folder within a parent folder
SYNTAX
Add-PnPFolder -Name <String> -Folder <FolderPipeBind> [-Connection <PnPConnection>]
DESCRIPTION
Allows to add a new folder.
EXAMPLES
EXAMPLE 1
Add-PnPFolder -Name NewFolder -Folder _catalogs/masterpage
This will create the folder NewFolder in the masterpage catalog
EXAMPLE 2
Add-PnPFolder -Name NewFolder -Folder "Shared Documents"
This will create the folder NewFolder in the Documents library
EXAMPLE 3
Add-PnPFolder -Name NewFolder -Folder "Shared Documents/Folder"
This will create the folder NewFolder in Folder inside the Documents library
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 parent folder in the site
Type: FolderPipeBind
Parameter Sets: (All)
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Name
The folder name
Type: String
Parameter Sets: (All)
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False