學習資源
本頁彙整學習 PowerShell 時值得使用的官方文件、官方影音與優質第三方教學,並說明每一項適合誰、該從哪裡開始。遵循「先官方、後第三方」的順序;影片已依主題嵌入各頁,這裡是完整的導覽清單。
建議的學習順序
官方文件與教材
| 資源 | 說明 | 適合 |
|---|---|---|
| PowerShell 官方文件 | Microsoft Learn 上的完整文件,含安裝、語言參考、cmdlet 說明 | 所有人,遇到問題先查這裡 |
| PowerShell 101 | 由 Mike F. Robbins 撰寫、Microsoft 收錄的入門教材,以 Windows PowerShell 5.1 為主,但基本觀念適用所有平台 | 系統管理員、入門者 |
| PowerShell Team Blog | PowerShell 產品團隊的官方部落格,新版本發布都在這裡公告 | 想追新版本功能的人 |
| PowerShell Community Blog | 社群撰寫、以情境為導向的文章 | 想看實際案例的人 |
| PowerShell Gallery | 官方模組與腳本庫 | 需要現成模組時 |
| PowerShell 原始碼(GitHub) | 開放原始碼專案,可查版本發布與回報問題 | 進階使用者 |
官方免費課程與證照
官方免費課程
- Get started with Windows PowerShell:Microsoft Learn 免費學習路徑,3 個單元,涵蓋 PowerShell 版本與編輯器、cmdlet 語法、
Get-Help與找指令。適合想有系統、互動式學習的人。 - Automate Administration with PowerShell(AZ-040):Microsoft 官方的講師授課課程,內容是用 PowerShell 管理與自動化 Windows Server。這是課程,沒有對應的認證考試。
- PowerShell 相關訓練總覽:Microsoft Learn 上所有 PowerShell 相關的學習路徑與模組。
PowerShell 沒有專屬的認證考試
截至撰寫時,Microsoft 沒有單獨的 PowerShell 認證。PowerShell 技能會出現在管理類認證的考試範圍內,例如 Azure Administrator(AZ-104)。想用認證證明能力的人,可以從這類認證入手,並把 PowerShell 當成必備工具來練習。
官方影音
| 系列 | 說明 | 長度與時期 |
|---|---|---|
| PowerShell 7 Video Series | PowerShell 團隊為 7.0 發布製作,共 10 支短片:簡介、新運算子、ForEach-Object -Parallel、效能、新錯誤檢視、Windows 相容性、VS Code、開源維護、未來方向與總結 |
合計約 58 分鐘,2020 年 |
| Getting Started with PowerShell 3.0 | PowerShell 之父 Jeffrey Snover 與 Jason Helmick 合開的 Jump Start,共 9 個單元,從認識殼層、說明系統、管線、物件、遠端到腳本撰寫 | 單元式,以 PowerShell 3.0 錄製,觀念沿用至今 |
| Getting Started with Microsoft PowerShell | Microsoft Virtual Academy 課程,已移到 Microsoft Learn 節目區 | 單元式 |
| PowerShell for Beginners(第 1 集) | Microsoft Learn 節目收錄的入門影片,示範最基本的探索指令 | 約 28 分鐘,2016 年 |
優質第三方影音
John Savill's Technical Training:PowerShell Master Class
免費且完整的英文系統性課程,附講義與範例(GitHub),完整清單見播放清單。錄於 2019 年,時間較早,但核心觀念仍適用。
| 單元 | 內容 | 長度 | 本站對應頁面 |
|---|---|---|---|
| PowerShell Fundamentals | 基礎入門 | 約 75 分鐘 | 核心概念 |
| Connecting Commands Together | 物件與管線 | 約 67 分鐘 | Cmdlet 與管線 |
| PowerShell Remoting | 遠端管理,含跨平台 | 約 76 分鐘 | 遠端管理 |
| PowerShell Scripting | 腳本基礎 | 約 34 分鐘 | 腳本語法 |
| Advanced Scripting Techniques | 函式、自建模組、腳本簽章 | 約 46 分鐘 | 腳本與模組 |
| Data and Objects | 認證資訊、資料剖析、物件 | 約 46 分鐘 | 資料格式與 API |
| Desired State Configuration | 宣告式組態管理(進階) | 約 37 分鐘 | 進階主題,未收錄 |
| Automation | PowerShell 工作流程、Azure Automation 與 Azure Functions(進階) | 約 46 分鐘 | 進階主題,未收錄 |
其他推薦
| 影片 | 說明 |
|---|---|
| Learn PowerShell in Less Than 2 Hours(PowerShell Engineer) | 約 1 小時 48 分鐘的入門課程,適合一次看完全貌,見 入門設定 |
| PowerShell 7 - Install Guide(The Cloud Geezer) | 約 6 分鐘的 Windows 安裝示範,見 安裝與環境 |
關於影片的時效
PowerShell 的核心(cmdlet、管線、物件、函式)十年來變化不大,所以較舊的影片仍然有價值。但新功能(例如 PowerShell 7 的三元運算子、ForEach-Object -Parallel)只出現在 PowerShell 7 以後的影片中。看影片時若發現畫面與你的環境不同,先確認版本($PSVersionTable)。
中文資源
- PowerShell 筆記(Poy Chang):繁體中文的實用速查筆記,涵蓋物件與陣列、JSON 轉換、HTTP 請求、Profile 與常用模組等。
本站已嵌入的影片
| 頁面 | 影片 |
|---|---|
| 首頁 | 官方:Jeffrey Snover 與 Jason Helmick 談 PowerShell |
| 入門設定 | Learn PowerShell in Less Than 2 Hours |
| 安裝與環境 | 安裝指南;官方 Windows 相容性;官方 VS Code |
| 探索指令 | PowerShell for Beginners(Microsoft Learn 收錄) |
| 核心概念 | Master Class:Fundamentals |
| Cmdlet 與管線 | Master Class:Connecting Commands Together |
| 腳本語法 | Master Class:PowerShell Scripting |
| 條件與迴圈 | 官方:新運算子;官方:ForEach-Object -Parallel |
| 錯誤處理 | 官方:新錯誤檢視 |
| 腳本與模組 | Master Class:Advanced Scripting Techniques |
| 資料格式與 API | Master Class:Data and Objects |
| 遠端管理 | Master Class:PowerShell Remoting |