Search Results for

    Show / Hide Table of Contents

    Resolve-PnPFolder

    SYNOPSIS

    Returns a folder from a given site relative path, and will create it if it does not exist.

    SYNTAX

    Resolve-PnPFolder [-SiteRelativePath] <String> [-Connection <PnPConnection>]
     [-Includes <String[]>] 
    

    DESCRIPTION

    Returns a folder from a given site relative path, and will create it if it does not exist. If you do not want the folder to be created, for instance just to test if a folder exists, use Get-PnPFolder

    EXAMPLES

    EXAMPLE 1

    Resolve-PnPFolder -SiteRelativePath "demofolder/subfolder"
    

    Creates a folder called subfolder in a folder called demofolder located in the root folder of the site. If the folder hierarchy does not exist, it will be created.

    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
    

    -SiteRelativePath

    Site Relative Folder Path

    Type: String
    Parameter Sets: (All)
    
    Required: True
    Position: 0
    Default value: None
    Accept pipeline input: False
    Accept wildcard characters: False
    

    RELATED LINKS

    Microsoft 365 Patterns and Practices Get-PnPFolder

    Back to top Generated by DocFX spacer