PSSessions
PSSessions use PowerShell remoting to communicate between servers. PSSessions can be used for anything from remote commands and script execution to providing a remote shell.
By default, PSSessions use the Microsoft.PowerShell configuration, described by the built-in $PSSessionConfigurationName variable. Remoting connections therefore always default to connecting to Windows PowerShell. Administrative rights are required to view and change session configuration information.
If you are creating a session to the local system, the -EnableNetworkAccess parameter should be added to the following commands. This parameter is only applicable to sessions that are created from and connect to the same system.
New-PSSession
Sessions are created using the New-PSSession command. In the following example, a session is created on a computer named PSTEST:
PS> New-PSSession -ComputerName PSTEST
Id Name ComputerName State ConfigurationName Availability...