O'Reilly logo

Learn PowerShell Scripting in a Month of Lunches 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 3. WWPD: what would PowerShell do?

Before you dive into scripting and toolmaking, it’s worth having a conversation about “The Right Way to Do Things.” One of PowerShell’s advantages—and also one of its biggest disadvantages—is that it’s pretty happy to let you take a variety of approaches when you code. If you’re an old-school VBScript person, PowerShell will let you write scripts that look a lot like VBScript. If you’re a C# person, PowerShell will happily run scripts that bear a strong resemblance to C#. But PowerShell is neither VBScript nor C#; if you want to take the best advantage of it and let it do as much heavy lifting for you as possible, you need to understand The PowerShell Way of doing things. We’re going to harp on this ...

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