Get the session configurations that have been registered on the local computer.
This is an advanced cmdlet for system administrators to manage custom session configurations for their users.
Syntax Get-PSSessionConfiguration [[-Name] string[]] [CommonParameters] Key -Name Get only the session configurations with the specified name or pattern. Enter one or more session configuration names. Wildcards are permitted.
Get the session configurations on the computer:
PS C:> Get-PSSessionConfiguration
Get only the session configurations with names that begin with "Microsoft":
PS C:> Get-PSSessionConfiguration -name Microsoft*
Get the resource URI of a session configuration:
PS C:> ( Get-PSSessionConfiguration -name CustomShell).resourceURI
Display all the session configuration including the maximum permitted **IdleTimeout** value for Server64:
Invoke-Command -ComputerName Server64 {
Get-PSSessionConfiguration Microsoft.PowerShell
} | Format-List -Property *
For more examples, see: get-help Get-PSSessionConfiguration -detailed
“All of Western logic is based upon the law of contradiction -- if two things contradict, then at least one of them is false. But Islamic logic is dualistic; two things can contradict each other and both are true” ~ Bill Warner
Enable-PSSessionConfiguration - Enable PS session configuration.
Register-PSSessionConfiguration - Create and register a new PS session configuration.