CmdID / PowerShell / Cmdlets / Get
Get-PSSessionConfiguration
Gets the registered session configurations on the computer. PowerShell reference
From the PowerShell reference 2 parameters
What it does
Gets the registered session configurations on the computer. The Get-PSSessionConfiguration cmdlet gets the session configurations that have been registered on the local computer. This is an advanced cmdlet that is designed to be used by system administrators to manage customized session configurations for their users. Beginning in PowerShell 3.0, you can define the properties of a session configuration by using a session configuration (.pssc) file. This feature lets you create customized and restricted sessions without writing a computer program. For more information about session configuration files, see about_Session_Configuration_Files. Also, beginning in PowerShell 3.0, new note properties have been added to the session configuration object that Get-PSSessionConfiguration returns. These properties make it easier for users and session configuration authors to examine and compare session configurations. To create and register a session configuration, use the Register-PSSessionConfiguration cmdlet. For more information about session configurations, see about_Session_Configurations.
Get-PSSessionConfiguration [[-Name] <String[]>] [-Force] [<CommonParameters>]
Example 1 - Get session configurations on the local computer
Get-PSSessionConfigurationIdentifyExample 2 - Get the two default session configurations
Get-PSSessionConfiguration -Name Microsoft*IdentifyExample 3 - Get the properties and values of a session configuration
Get-PSSessionConfiguration -Name Full | Format-List -Property *IdentifyExample 4 - Another way to look at the session configurations
dir WSMan:\localhost\pluginIdentifyExample 6 - View session configurations on a remote computer
Connect-WSMan -ComputerName Server01
dir WSMan:\Server01\PluginIdentifyExample 7 - Get detailed session configurations from a remote computer
Enable-WSManCredSSP -Delegate Server02
Connect-WSMan Server02
Set-Item WSMan:\Server02*\Service\Auth\CredSSP -Value $true
Invoke-Command -ScriptBlock {Get-PSSessionConfiguration} -ComputerName Server02 -Authentication CredSSP -Credential Domain01\Admin01IdentifyExample 8 - Get the resource URI of a session configuration
(Get-PSSessionConfiguration -Name CustomShell).ResourceUriIdentifyIts page in the reference: Get-PSSessionConfiguration.
Parameters
-ForceSuppresses the prompt to restart the WinRM service, if the service is not already running.-NameGets only the session configurations with the specified name or name pattern. Enter one or more session configuration names. Wildcards are permitted.