CmdID / PowerShell / Cmdlets / Get
Get-PSSessionCapability
Gets the capabilities of a specific user on a constrained session configuration. PowerShell reference
From the PowerShell reference 3 parameters
What it does
Gets the capabilities of a specific user on a constrained session configuration. The Get-PSSessionCapability cmdlet gets the capabilities of a specific user on a constrained session configuration. Use this cmdlet to audit customized session configurations for users. Starting in Windows PowerShell 5.0, you can use the RoleDefinitions property in a session configuration (.pssc) file. Using this property lets you grant users different capabilities on a single constrained endpoint based on group membership. The Get-PSSessionCapability cmdlet reduces complexity when auditing these endpoints by letting you determine the exact capabilities granted to a user. By default, the Get-PSSessionCapability cmdlet returns a list of commands the specified user can run in the specified endpoint. This is equivalent to the user running Get-Command in the specified endpoint. When run with the Full parameter, this cmdlet returns an InitialSessionState object. This object contains details about the Windows PowerShell runspace the specified user would interact with for the specified endpoint. It includes information such as Language Mode, Execution Policy, and Environmental Variables.
Get-PSSessionCapability [-ConfigurationName] <String> [-Username] <String> [-Full] [<CommonParameters>]
Get commands available for a user
Get-PSSessionCapability -ConfigurationName Endpoint1 -Username 'CONTOSO\User'IdentifyGet details about a runspace for a user
Get-PSSessionCapability -ConfigurationName Endpoint1 -Username 'CONTOSO\User' -FullIdentifyIts page in the reference: Get-PSSessionCapability.
Parameters
-ConfigurationNameSpecifies the constrained session configuration (endpoint) that you are inspecting.-FullIndicates that this cmdlet returns the entire initial session state for the specified user at the specified constrained endpoint.-UsernameSpecifies the user whose capabilities you are inspecting.