Guest User

Untitled

a guest
Jun 20th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. param(
  2. [Parameter(Mandatory = $true)]
  3. [string]$ListTitle,
  4. [Parameter(Mandatory = $true)]
  5. [bool]$AllowDeletion
  6. )
  7.  
  8. $list = Get-PnPList -Identity $ListTitle
  9. $list.AllowDeletion = $AllowDeletion
  10. $list.Update()
  11. $list.Context.ExecuteQuery()
Add Comment
Please, Sign In to add comment