Cmdlet、管道、脚本与远程管理,支撑 Windows 服务器与 GitHub Actions Windows runner。
登录后追踪本课程进度 —登录
PowerShell 是什么
与 CMD/Bash 对比;Windows 运维场景。
Cmdlet 基础
Verb-Noun、Get-Help、Get-Command。
管道与对象
对象管道 vs 文本管道、Where-Object。
变量与类型
$var、数组、哈希表。
脚本与函数
.ps1、param、execution policy。
文件与路径
Get-ChildItem、Copy-Item、路径引号。
远程与会话
Enter-PSSession、Invoke-Command 概念。
PowerShell vs Bash
与 linux-essentials 对照、何时用哪种。
Windows 部署 CodeRoadMap
sync-courses.ps1、package-prod.bat 解读。
GitHub Actions Windows
windows-latest runner、与 ci.yml 关系。
Windows 容器简介
Docker Desktop Windows、与 Linux 容器对照。
综合练习
编写检查 8080/3000 端口的脚本。