Skip to content

Get‑WindowsPrivilege

raandree edited this page Sep 6, 2026 · 1 revision

SYNOPSIS

Gets privileges held by the current process token.

SYNTAX

Get-WindowsPrivilege [<CommonParameters>]

DESCRIPTION

Returns structured information for every Windows privilege present in the current PowerShell process token. This command does not enable, disable, add, or remove privileges.

EXAMPLES

EXAMPLE 1

Get-WindowsPrivilege | Where-Object Enabled

Lists privileges that are currently enabled in this process.

PARAMETERS

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

None

OUTPUTS

WindowsAccessControl.Privilege

NOTES

RELATED LINKS

Home

Commands

DSC resources

Clone this wiki locally