PowerShell Automation and Scripting: From scripting basics to enterprise automation with Azure, Entra ID, and APIs (English Edition)
暫譯: PowerShell 自動化與腳本編寫:從腳本基礎到使用 Azure、Entra ID 和 API 的企業自動化 (英文版)

Seidl, Michael, Uzejnovic, Ahmed

  • 出版商: BPB Publications
  • 出版日期: 2026-03-03
  • 售價: $1,630
  • 貴賓價: 9.5$1,548
  • 語言: 英文
  • 頁數: 414
  • 裝訂: Quality Paper - also called trade paper
  • ISBN: 9365896312
  • ISBN-13: 9789365896312
  • 相關分類: Powershell
  • 海外代購書籍(需單獨結帳)

相關主題

商品描述

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

商品描述(中文翻譯)

PowerShell 已成為自動化管理任務和管理現代 IT 環境的最通用腳本語言。PowerShell 自動化允許重複性任務自動化,減少錯誤,隨著環境變得越來越大和複雜,它成為保持控制和高效的關鍵。

本書專注於 PowerShell 的實際行為以及為什麼腳本有時會以意想不到的方式失敗。為了理解其本質,本書涵蓋了 PowerShell 腳本的基本概念,如物件、管道、變數和迴圈,然後再探討 Active Directory 和 Entra ID 管理。讀者將學會使用 PowerShell Desired State Configuration 自動化 Azure 虛擬機,使用 Azure Automation Hybrid Workers 排程任務,並通過 JEA 實現遠端管理。進階模組進一步專注於 .NET 函式庫、Pester 單元測試、除錯和錯誤處理,以確保您的腳本專業且可維護。

在本書結束時,讀者將對在日常任務中使用 PowerShell 感到自信。腳本將更容易理解、更安全執行且更易於維護。自動化將變得可靠而非風險,重複性工作最終可以減少。PowerShell 不僅會被使用,還會被理解和欣賞。

您將學到的內容:
- PowerShell 物件和管道處理。
- 配置 VS Code 以進行 PowerShell 腳本編寫。
- 自動化 Active Directory 和 Entra ID。
- 編寫乾淨、可重用、可預測和可靠的 PowerShell 腳本。
- 使用 Pester 和錯誤處理構建可靠的自動化。
- 使用 GitHub Copilot 和擴展優化 VS Code。

本書適合對象:
本書非常適合系統管理員、雲端工程師、IT 專業人員、自動化專家和顧問,這些人希望精通 PowerShell,簡化日常任務,高效管理系統,減少錯誤,並在 IT 和雲端環境中構建實用、可靠的自動化解決方案。

目錄:
1. PowerShell 入門
2. 使用 Visual Studio Code 增強腳本編寫
3. 理解 Cmdlets 和模組
4. 變數、運算子和迴圈
5. 使用 PowerShell 物件和函式
6. 管理檔案和目錄
7. 使用 PowerShell 管理 Active Directory
8. 使用 PowerShell 管理 Entra ID
9. 連接到 SQL Server
10. 排程任務和工作流程
11. PowerShell 和 Azure 的虛擬機自動化
12. 使用 API 和網路服務
13. 在 PowerShell 中使用 .NET 函式庫
14. 使用 PowerShell 進行遠端管理和安全性
15. AI 驅動的 PowerShell
16. 進階除錯和錯誤處理
17. 使用 Pester 測試 PowerShell 腳本
18. 實際自動化範例