PowerShell
PowerShell 是一种跨平台的任务自动化解决方案,由命令行 shell、脚本语言和配置管理框架组成。 PowerShell 在 Windows、Linux 和 macOS 上运行。
Windows PowerShell 和 PowerShell 是两个独立的产品。
Windows PowerShell 是 Windows 中随附的 PowerShell 版本。 此版本的 PowerShell 使用仅在 Windows 上运行的完整 .NET Framework。 最新版本为 Windows PowerShell 5.1。 Microsoft 不再为 Windows PowerShell 的更新提供新功能。 对 Windows PowerShell 的支持与你正在使用的 Windows 版本相关联。
PowerShell 基于新版本的 .NET 而不是 .NET Framework 生成,在 Windows、Linux 和 macOS 上运行。 对 PowerShell 的支持取决于它所基于的 .NET 版本。 有关 PowerShell 的支持生命周期的详细信息,请参阅 PowerShell 支持生命周期文档。
微软教程 https://learn.microsoft.com/zh-cn/powershell/
搜索查看最新版本
winget search --id Microsoft.PowerShell
结果
Name Id Version Source
---------------------------------------------------------------
PowerShell Microsoft.PowerShell 7.5.4.0 winget
PowerShell Preview Microsoft.PowerShell.Preview 7.6.0.6 winget
安装
winget install --id Microsoft.PowerShell --source winget
浙公网安备 33010602011771号