Returns one or more Sitecore roles using the specified criteria.
Syntax
Get-Role [-Identity] <AccountIdentity>
Get-Role -Filter <String>
Detailed Description
The Get-Role command returns one or more Sitecore roles using the specified criteria.
The Identity parameter specifies the Sitecore role to get. You can specify a role by its local name or fully qualified name. You can also specify role object variable, such as $<role>.
To search for and retrieve more than one role, use the Filter parameter.