O'Reilly logo

Learn Windows PowerShell 3 in a Month of Lunches, Second Edition by Don Jones and Jeffery Hicks

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

When we first started to use PowerShell (in version 1), we were 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, we discovered that’s exactly what it did. We were excited and started to look for -computerName parameters on other cmdlets. But we were disappointed to find there were only a few. With v2 a few more were added, but the number of commands that have this parameter are vastly outnumbered by the commands that don’t.

What we’ve realized since that time is that PowerShell’s creators are a bit lazy—and that’s a good thing. Because they ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required