2 Setting up your scripting environment

We know you’re ready to jump feetfirst into the deep end of the scripting pool. But first, we need to take some time to make sure you have an adequate environment set up to use throughout this book. This chapter may be a lunch and a half, but you must follow along with each step to ensure you have an environment where you can safely complete the hands-on labs that will appear at the end of most chapters.

2.1 The operating system

While PowerShell is cross-platform for this book’s duration, we’ll primarily focus on the Windows operating system because PowerShell is still prominently used on Windows devices. You’ll first need a computer running Windows 10 or 11. You could use a Windows 7 computer, but that’s ...

Get Learn PowerShell Scripting in a Month of Lunches, Second Edition 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.