PowerShell Automation and Scripting
eBook - ePub

PowerShell Automation and Scripting

From scripting basics to enterprise automation with Azure, Entra ID, and APIs (English Edition)

  1. 413 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

PowerShell Automation and Scripting

From scripting basics to enterprise automation with Azure, Entra ID, and APIs (English Edition)

About this book

Description
PowerShell has become the most versatile scripting language for automating administrative tasks and managing modern IT environments. PowerShell automation allows repetitive tasks to be automated, reduces errors, and as environments grow bigger and more complex, it becomes the key to keeping control and staying efficient.

This book focuses on how PowerShell really behaves and why scripts sometimes fail in unexpected ways. To understand the nature, the book covers PowerShell scripting fundamentals like objects, the pipeline, variables, and loops before exploring Active Directory and Entra ID management. The readers will learn to automate Azure VMs using PowerShell Desired State Configuration, schedule tasks with Azure Automation Hybrid Workers, and implement remote management via JEA. The advanced modules further focus on .NET libraries, Pester unit testing, debugging, and error handling to ensure your scripts are professional and maintainable.

By the end of the book, the readers will feel confident using PowerShell in daily tasks. Scripts will be easier to understand, safer to run, and easier to maintain. Automation will become reliable instead of risky, and repetitive work can finally be reduced. PowerShell will not only be used, but it will also be understood and appreciated.

What you will learn
? PowerShell objects and pipeline processing.
? Configure VS Code for PowerShell scripting.
? Automate Active Directory and Entra ID.
? Write clean, reusable, predictable, and reliable PowerShell scripts.
? Build reliable automation using Pester and error handling.
? Optimize VS Code with GitHub Copilot and extensions.

Who this book is for
This book is ideal for system administrators, cloud engineers, IT professionals, automation specialists, and consultants who want to master PowerShell, streamline daily tasks, manage systems efficiently, reduce errors, and build practical, reliable automation solutions across IT and cloud environments.

Table of Contents
1. Getting Started with PowerShell
2. Enhancing Scripting with Visual Studio Code
3. Understanding Cmdlets and Modules
4. Variables, Operators, and Loops
5. Working with PowerShell Objects and Functions
6. Managing Files and Directories
7. Managing Active Directory with PowerShell
8. Managing Entra ID with PowerShell
9. Connecting to SQL Server
10. Scheduling Tasks and Workflows
11. PowerShell and Azure for VM Automation
12. Working with APIs and Web Services
13. Using .NET Libraries in PowerShell
14. Remote Management and Security with PowerShell
15. AI-powered PowerShell
16. Advanced Debugging and Error Handling
17. Testing PowerShell Scripts with Pester
18. Real-world Automation Examples

Trusted by 375,005 students

Access to over 1.5 million titles for a fair monthly price.

Study more efficiently using our study tools.

Information

Year
2026
eBook ISBN
9789365896312

Table of contents

  1. Cover
  2. Title Page
  3. Copyright Page
  4. Dedication Page
  5. About the Authors
  6. About the Reviewers
  7. Acknowledgements
  8. Preface
  9. Table of Contents
  10. 1. Getting Started with PowerShell
  11. 2. Enhancing Scripting with Visual Studio Code
  12. 3. Understanding Cmdlets and Modules
  13. 4. Variables, Operators, and Loops
  14. 5. Working with PowerShell Objects and Functions
  15. 6. Managing Files and Directories
  16. 7. Managing Active Directory with PowerShell
  17. 8. Managing Entra ID with PowerShell
  18. 9. Connecting to SQL Server
  19. 10. Scheduling Tasks and Workflows
  20. 11. PowerShell and Azure for VM Automation
  21. 12. Working with APIs and Web Services
  22. 13. Using .NET Libraries in PowerShell
  23. 14. Remote Management and Security with PowerShell
  24. 15. AI-powered PowerShell
  25. 16. Advanced Debugging and Error Handling
  26. 17. Testing PowerShell Scripts with Pester
  27. 18. Real-world Automation Examples
  28. Index

Frequently asked questions

Yes, you can cancel anytime from the Subscription tab in your account settings on the Perlego website. Your subscription will stay active until the end of your current billing period. Learn how to cancel your subscription
No, books cannot be downloaded as external files, such as PDFs, for use outside of Perlego. However, you can download books within the Perlego app for offline reading on mobile or tablet. Learn how to download books offline
Perlego offers two plans: Essential and Complete
  • Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
  • Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.5M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Both plans are available with monthly, semester, or annual billing cycles.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1.5 million books across 990+ topics, we’ve got you covered! Learn about our mission
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more about Read Aloud
Yes! You can use the Perlego app on both iOS and Android devices to read anytime, anywhere — even offline. Perfect for commutes or when you’re on the go.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app
Yes, you can access PowerShell Automation and Scripting by Ahmed Uzejnovic,Michael Seidl in PDF and/or ePUB format, as well as other popular books in Computer Science & Programming Languages. We have over 1.5 million books available in our catalogue for you to explore.