Documentation
SecurityPolicy overview
SecurityPolicy manages local user-rights assignments from PowerShell.
Use SecurityPolicy when local security policy changes need to be reviewed, scripted, and repeated without hand-editing exported secedit.exe files.
Good fit
- checking who has a selected Windows privilege
- staging privilege changes with
-WhatIf - adding or removing identities from a user-rights assignment
- standardizing local policy across a controlled set of servers