locked
PowerShell code to delete all the unique permission associated to a sub-site. RRS feed

  • Question

  • PowerShell code to delete all the unique permissions associated to a sub-site.

     

    asnp *sh*

    $webUrl="https://XXXXX/sites/opstest/Aditest/"
     $web = Get-SPweb  $webUrl   
     if($Web.HasUniqueRoleAssignments -ne $null)

    {

    #delete all unique permissions

    }

    Thursday, September 5, 2019 2:08 AM

All replies