Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Chapter 10. Remote control: one to one, ... > Using Enter-PSSession and Exit-PSSes...

10.3. Using Enter-PSSession and Exit-PSSession for 1:1 remoting

PowerShell uses remoting in two distinct ways. The first is called one-to-one, or 1:1, remoting (the second way is one-to-many remoting, and you’ll see it in the next section). With this kind of remoting, you’re basically accessing a shell prompt on a single remote computer. Any commands you run will run directly on that computer, and you’ll see results in the shell window. This is vaguely similar to using Remote Desktop Connection, except that you’re limited to the command-line environment of Windows PowerShell. Oh, and this kind of remoting uses a fraction of the resources that Remote Desktop requires, so it imposes much less overhead on your servers!

To establish a one-to-one connection with a remote computer, run this command:


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial