PowerShell for Sysadmins: Workflow Automation Made Easy

PowerShell for Sysadmins: Workflow Automation Made Easy

by Adam Bertram
PowerShell for Sysadmins: Workflow Automation Made Easy

PowerShell for Sysadmins: Workflow Automation Made Easy

by Adam Bertram

Paperback

$29.95 
  • SHIP THIS ITEM
    Qualifies for Free Shipping
  • PICK UP IN STORE
    Check Availability at Nearby Stores

Related collections and offers


Overview

Learn to use PowerShell, Microsoft's scripting language, to automate real-world tasks that IT professionals and system administrators deal with every day.

Save Time. Automate.

PowerShell® is both a scripting language and an administrative shell that lets you control and automate nearly every aspect of IT. In PowerShell for Sysadmins, five-time Microsoft® MVP "Adam the Automator" Bertram shows you how to use PowerShell to manage and automate your desktop and server environments so that you can head out for an early lunch.

You'll learn how to:
  • Combine commands, control flow, handle errors, write scripts, run scripts remotely, and test scripts with the PowerShell testing framework, Pester
  • Parse structured data like XML and JSON, work with common domains (like Active Directory, Azure, and Amazon Web Services), and create a real-world server inventory script
  • Design and build a PowerShell module to demonstrate PowerShell isn't just about ad-hoc scripts
  • Use PowerShell to create a hands-off, completely automated Windows deployment
  • Build an entire Active Directory forest from nothing but a Hyper-V host and a few ISO files
  • Create endless Web and SQL servers with just a few lines of code!
Real-world examples throughout help bridge the gap between theory and actual system, and the author's anecdotes keep things lively.

Stop with the expensive software and fancy consultants. Learn how to manage your own environment with PowerShell for Sysadmins and make everyone happy.

Covers Windows PowerShell v5.1

Product Details

ISBN-13: 9781593279189
Publisher: No Starch Press
Publication date: 02/04/2020
Pages: 320
Sales rank: 216,217
Product dimensions: 7.00(w) x 9.20(h) x 0.90(d)

About the Author

Adam Bertram is a 25+ year veteran of IT and an experienced online business professional. He’s a successful blogger, consultant, Microsoft MVP, published author, and freelance writer for dozens of tech publications. Adam runs the popular tech learning site adamtheautomator.com and is probably on Twitter too much at @adbertram.

Read an Excerpt

INTRODUCTION
Throughout my career in IT, I’ve worked a diverse range of jobs: I’ve been in the trenches answering calls on the help desk, visited users to tell them to reboot as a technician, kept servers up as a systems administrator, designed and built solutions as a systems engineer, and learned the difference between OSPF and RIP routing as a network engineer.

It wasn’t until I discovered PowerShell that I realized how passionate I could be for a particular technology. PowerShell has changed my life in more ways than one, and it’s the technology that’s changed the trajectory of my career most dramatically. This language helped me be a critical asset at my job by knowing how to save countless hours of my team’s work, and it got me my first six-figure salary. PowerShell is just so cool that I decided I had to share it with the world, and since then, I’ve been awarded the prestigious Microsoft MVP award for five years straight.

In this book, I’ll show you how to use PowerShell to automate thousands of tasks, build custom tools instead of buying off-the-shelf products, and link various tools together. You may not be interested in becoming an active member of the PowerShell community, but I guarantee that learning PowerShell will give you skills that many businesses need and actively seek.
 
Why PowerShell?
Once called Monad (see https://www.jsnover.com/Docs/MonadManifesto.pdf ) and pitched as a more intuitive way to automate tasks than VBScript in 2003, Microsoft PowerShell is a universal automation, scripting, and development language. PowerShell was created to bridge the gap between scripting, automation, and operations personnel. It was meant to enable users to automate tasks with scripts without having to learn computer programming. This makes it particularly useful for system administrators who lack a background in software development. If you’re a system administrator with not enough time to get everything done, PowerShell is a great ally to have.

PowerShell has now become an open source, ubiquitous, cross-platform scripting and development language. You can use PowerShell not only to provision fully configured server farms, but also to create a text file or set a registry key. Thousands of software products and services have PowerShell support now, thanks to its ever-increasing adoption rate among IT professionals, developers, DevOps engineers, database administrators, and systems engineers.
 
Who This Book Is For
This book is for IT professionals and system administrators who are tired of clicking around in the same GUI and performing the same task for the 500th time this year. It can also be for DevOps engineers who are struggling to automate new server environments, perform automated testing, or automate an entire continuous integration/continuous delivery (CI/CD) build pipeline.

No single demographic benefits the most from PowerShell. The traditional job role of a PowerShell user is the Microsoft system administrator in a “Windows shop,” but PowerShell tends to fit well in the tool belt of any IT operations personnel. If you’re in IT and don’t consider yourself a developer, this book is for you.
 
About This Book
In this book, I’ll teach by doing, using tons of examples and real-world use cases. Instead of telling you what a variable is, I’ll show you. If you’re looking for a traditional textbook, this book isn’t for you.

I won’t break PowerShell into parts and cover each feature independently, since that’s not how you’ll use PowerShell in the real world. For example, rather than expect you to know the written definition of a function or for loop, I’ll combine features whenever possible to give you a holistic understanding of the problem at hand and how to solve it.

The book is divided into three parts.
Part I: Fundamentals gives PowerShell newcomers the knowledge they need to hang with the seasoned veterans. If you’re at an intermediate or higher skill level in PowerShell, you can skip to Chapter 8.
Chapters 1–7 cover the PowerShell language itself. You’ll learn the basics including how to find help and how to discover new commands, as well as some programming concepts common to other programming languages such as variables, objects, functions, modules, and errorhandling basics.
Chapter 8 explains how to use PowerShell remoting to connect to and run commands on remote computers.
Chapter 9 introduces the popular PowerShell testing framework Pester, which you’ll use throughout the book.

In Part II: Automating Day-to-Day Tasks, you’ll apply what you learned in Part I to begin automating common tasks.
Chapters 10–13 cover how to parse structured data as well as common domains many IT administrators work with, such as Active Directory, Azure, and Amazon Web Services (AWS).
Chapter 14 shows you how to build a tool you can use in your own environment to inventory your servers.

In Part III: Building Your Own Module, you’ll focus on building a single PowerShell module called PowerLab to demonstrate what’s possible with PowerShell. We’ll cover good module design and best practices around functions. Even if you consider yourself an advanced PowerShell scripter, you’re sure to learn something from Part III.
Chapters 15–20 explain how to use PowerShell to automate entire lab or test server environments by demonstrating how to provision Hyper-V virtual machines, install operating systems, and deploy and configure IIS and SQL servers.
 
I hope this book helps you get your feet wet with PowerShell. If you’re a beginner, I hope it gives you the courage to start automating; if you’re a seasoned scripter, I hope it shows you some tricks you may not be familiar with.

Let’s get scripting!

Table of Contents

Introduction

Part I: Fundamentals
Chapter 1: Getting Started
Chapter 2: Basic PowerShell Concepts
Chapter 3: Combining Commands
Chapter 4: Control Flow
Chapter 5: Error Handling
Chapter 6: Writing Functions
Chapter 7: Exploring Modules
Chapter 8: Running Scripts Remotely
Chapter 9: Testing with Pester

Part II: Automating Day-to-Day Tasks
Chapter 10: Parsing Structured Data
Chapter 11: Automating Active Directory
Chapter 12: Working with Azure
Chapter 13: Working with AWS
Chapter 14: Creating a Server Inventory Script

Part III: Building Your Own Module
Chapter 15: Provisioning a Virtual Environment
Chapter 16: Installing an Operating System
Chapter 17: Deploying Active Directory
Chapter 18: Creating and Configuring a SQL Server
Chapter 19: Refactoring Your Code
Chapter 20: Creating and Configuring an IIS Web Server
From the B&N Reads Blog

Customer Reviews