# Stage a user-rights change

Stage a user-rights change on Evotec with practical examples, usage guidance, and reusable project workflows.

Project

SecurityPolicy

Provides a way to configure user rights assignments in local security policies using PowerShell without using secedit.exe.

[View on GitHub](https://github.com/EvotecIT/SecurityPolicy) [Visit Website](#) [Releases](https://github.com/EvotecIT/SecurityPolicy/releases/tag/v0.0.13) [Changelog](#) [Get package](https://www.powershellgallery.com/packages/SecurityPolicy)

Stars**22**

Forks**4**

Open issues**2**

PowerShell Gallery downloads**123339345**

Release**v0.0.13**

Language: PowerShell Updated: 2026-02-14

Curated Examples

Use SecurityPolicy with WhatIf before changing a privilege assignment.

This pattern is useful when a security policy change needs a dry run before it is applied.

It comes from the source example at `Examples/SetUserRights.ps1`.

## When to use this pattern

- You are preparing a controlled user-rights assignment update.
- You want to validate the intended identity list first.
- The change should be reviewable before execution.

## Example

```powershell
Import-Module SecurityPolicy

$identity = @(
    'BUILTIN\Backup Operators'
    'BUILTIN\Administrators'
)

Set-UserRightsAssignment -UserRightsAssignment SeBackupPrivilege -Identity $identity -WhatIf
```

## What this demonstrates

- using an explicit identity list
- staging the update with `-WhatIf`
- targeting a single named privilege

## Source

- [SetUserRights.ps1](https://github.com/EvotecIT/SecurityPolicy/blob/master/Examples/SetUserRights.ps1)

<!-- PowerForge markdown artifact sha256:B26EB4C4CB742C8B867275815792B9028C083337619153F158C6EFF234DF78D0 -->
