Skip to content

Instantly share code, notes, and snippets.

@arjancornelissen
Created December 3, 2018 20:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arjancornelissen/c301ed53944d2e4407787fc67918011d to your computer and use it in GitHub Desktop.
Save arjancornelissen/c301ed53944d2e4407787fc67918011d to your computer and use it in GitHub Desktop.
Enable PIM role
$roleid = Get-PrivilegedRoleAssignment | Where-Object {$_.RoleName -eq "SharePoint Service Administrator"}
Enable-PrivilegedRoleAssignment -TicketNumber "I376524" -Reason "Handling SharePoint issue" -Duration 2 -RoleId $roleid
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment