Skip to content

Latest commit

 

History

History
20 lines (17 loc) · 571 Bytes

SetSPOSitePolicy.md

File metadata and controls

20 lines (17 loc) · 571 Bytes

#Set-SPOSitePolicy Sets a site policy ##Syntax

Set-SPOSitePolicy -Name <String> [-Web <WebPipeBind>]

##Parameters

Parameter Type Required Description
Name String True The name of the site policy to apply
Web WebPipeBind False The web to apply the command to. Omit this parameter to use the current web.
##Examples

###Example 1

PS:> Set-SPOSitePolicy -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.