The Enter-PSSession command

Enter-PSSession may be employed to use a session as a remote console. By default, Enter-PSSession accepts a computer name as the first argument:

Enter-PSSession PSTest 

In a similar way, an existing session might be used:

$session = New-PSSession -ComputerName PSTest
Enter-PSSession -Session $session 

Enter-PSSession uses WS-Management as a means of exchanging information between the client and the server. Once a command is typed and the return key is pressed, the entire command is sent to the remote host. The result of the command is sent back using the same mechanism. This exchange can inject a small amount of latency into the shell.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.191.195.110