Get-PSSessionConfiguration

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.

Examples

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:

PS C:> 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

Related PowerShell Cmdlets:

Enable-PSSessionConfiguration - Enable PS session configuration.
Register-PSSessionConfiguration - Create and register a new PS session configuration.


 
Copyright © 1999-2021 SS64.com
Some rights reserved