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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.