Chapter 2. Setting up your scripting environment

OK, it’s time to start actually doing stuff. We’ll begin by making sure you have a functioning scripting environment ready to go. We strongly recommend that you work through each step in this chapter, to make sure you have an environment in which you can follow along with us and where you can complete the hands-on exercises that appear at the end of many chapters.

2.1. The operating system

The first thing you’re going to need, of course, is a computer running an operating system. Although the techniques we cover in this book apply equally to Linux, macOS, and Windows, the examples we’re providing—because they use Windows’ Windows Management Instrumentation (WMI) and Common Information Model ...

Get Learn PowerShell Scripting in a Month of Lunches now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.