< Back
Get-CPrivilege
Post
NAME Get-CPrivilege
SYNOPSIS
Gets an identity's privileges.
SYNTAX
Get-CPrivilege [-Identity] <String> [<CommonParameters>]
DESCRIPTION
These privileges are usually managed by Group Policy and control the system operations and types of logons a
user/group can perform.
Note: if a computer is not on a domain, this function won't work.
PARAMETERS
-Identity <String>
The identity whose privileges to return.
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
System.String
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Get-CPrivilege -Identity TheBeast
Gets `TheBeast`'s privileges as an array of strings.
RELATED LINKS
Carbon_Privilege
Grant-CPrivilege
Revoke-Prvileges
Test-CPrivilege
SYNOPSIS
Gets an identity's privileges.
SYNTAX
Get-CPrivilege [-Identity] <String> [<CommonParameters>]
DESCRIPTION
These privileges are usually managed by Group Policy and control the system operations and types of logons a
user/group can perform.
Note: if a computer is not on a domain, this function won't work.
PARAMETERS
-Identity <String>
The identity whose privileges to return.
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
System.String
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Get-CPrivilege -Identity TheBeast
Gets `TheBeast`'s privileges as an array of strings.
RELATED LINKS
Carbon_Privilege
Grant-CPrivilege
Revoke-Prvileges
Test-CPrivilege