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
  • PrintPrint
Share this Page URL
Help

Chapter 10. Remote control: one to one, and one to many

10. Remote control: one to one, and one to many

When I first started using PowerShell (in version 1), I was playing around with the Get-Service command, and noticed that it had a -computerName parameter. Hmmm ... does that mean it can get services from other computers, too? After a bit of experimenting, I discovered that’s exactly what it did. I got very excited and started looking for -computerName parameters on other cmdlets, and was disappointed to find that there were very few. A few more were added in v2, but the commands that have this parameter are vastly outnumbered by the commands that don’t.

What I’ve realized since is that PowerShell’s creators are a bit lazy—and that’s a good thing! They didn’t want to have to code a -computerName parameter for every single cmdlet, so they created a shell-wide system called remoting. Basically, it enables any cmdlet to be run on a remote computer. In fact, you can even run commands that exist on the remote computer but that don’t exist on your own computer—meaning that you don’t always have to install every single administrative cmdlet on your workstation. This remoting system is powerful, and it offers a number of interesting administrative capabilities.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

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

  

Start a Free 10-Day Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint