Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- param(
- [Parameter(Mandatory = $true)]
- [string]$ListTitle,
- [Parameter(Mandatory = $true)]
- [bool]$AllowDeletion
- )
- $list = Get-PnPList -Identity $ListTitle
- $list.AllowDeletion = $AllowDeletion
- $list.Update()
- $list.Context.ExecuteQuery()
Add Comment
Please, Sign In to add comment