Have a personal or library account? Click to login
Getting Started with Powershell Cover

Getting Started with Powershell

Learn the fundamentals of PowerShell to build reusable scripts and functions to automate administrative tasks with Windows

Paid access
|Sep 2025
Product purchase options

Learn the fundamentals of PowerShell to build reusable scripts and functions to automate administrative tasks with Windows

Key Features

    Book Description

    Windows PowerShell is a task-based command-line shell and scripting language designed specifically for system administration. Built on the .NET Framework, Windows PowerShell helps IT professionals and power users control and automate the administration of the Windows operating system and applications that run on Windows.
    PowerShell is great for batch importing or deleting large sets of user accounts and will let you collect a massive amount of detailed system information in bulk via WMI (Windows Management Instrumentation).
    Getting Started with PowerShell is designed to help you get up and running with PowerShell, taking you from the basics of installation, to writing scripts and web server automation. This book, as an introduction to the central topics of PowerShell, covers finding and understanding PowerShell commands and packaging code for reusability, right through to a practical example of automating IIS. It also includes topics such as installation and setup, creating scripts, automating tasks, and using Powershell to access data stores, registry, and file systems.
    You will explore the PowerShell environment and discover how to use cmdlets, functions, and scripts to automate Windows systems. Along the way, you will learn to perform data manipulation and solve common problems using basic file input/output functions.
    By the end of this book, you will be familiar with PowerShell and be able to utilize the lessons learned from the book to automate your servers.

    What you will learn

    • Learn to verify your installed version of PowerShell, upgrade it, and start a PowerShell session using the ISE
    • Discover PowerShell commands and cmdlets and understand PowerShell formatting
    • Use the PowerShell help system to understand what particular cmdlets do
    • Utilise the pipeline to perform typical data manipulation
    • Package your code in scripts, functions, and modules
    • Solve common problems using basic file input/output functions
    • Find system information with WMI and CIM
    • Automate IIS functionality and manage it using the WebAdministration module

    Who this book is for

    This book is intended for Windows administrators or DevOps users who need to use PowerShell to automate tasks. Whether you know nothing about PowerShell or know just enough to get by, this guide will give you what you need to go to take your scripting to the next level.

    Table of Contents

    1. First steps
    2. Building Blocks (Get-command and Get-Help)
    3. What next (get-member)
    4. Life on the assembly line (the pipeline)
    5. Formatting
    6. Scripts
    7. Functions
    8. Modules
    9. File I/O
    10. WMI/CIM
    11. Web Server Automation
    12. Appendix: Next Steps
    https://github.com/packtpublishing/getting-started-with-powershell
    PDF ISBN: 978-1-78528-490-8
    Publisher: Packt Publishing Limited
    Copyright owner: © 2015 Packt Publishing Limited
    Publication date: 2025
    Language: English
    Pages: 180