Search Results for

    Show / Hide Table of Contents

    Set-PnPSitePolicy

    SYNOPSIS

    Sets a site policy

    SYNTAX

    Set-PnPSitePolicy -Name <String> [-Connection <PnPConnection>] 
    

    DESCRIPTION

    Allows to modify a site policy.

    EXAMPLES

    EXAMPLE 1

    Set-PnPSitePolicy -Name "Contoso HBI"
    

    This applies a site policy with the name "Contoso HBI" to the current site. The policy needs to be available in the site.

    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
    

    -Name

    The name of the site policy to apply

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

    RELATED LINKS

    Microsoft 365 Patterns and Practices

    Back to top Generated by DocFX spacer