安装和配置 PowerShell 7
1. PowerShell 7 简介
PowerShell 7 是 PowerShell 发展的最新阶段。PowerShell 于 2003 年首次向公众推出,2006 年正式发布为 Windows PowerShell v1。在接下来的十年里,微软发布了多个版本,最终到 PowerShell 5.1。Windows PowerShell 从 Windows 的附加组件发展成为集成功能。微软计划长期支持 Windows PowerShell 5.1,但不太可能有新功能。
PowerShell 开发团队基于开源的 .NET Core 开发了开源版的 PowerShell。最初的三个版本 PowerShell Core 6.0、6.1 和 6.2 是概念验证版本,可在 Windows、Mac 和 Linux 平台上运行 PowerShell 的核心功能,但在满足 IT 专业社区的丰富需求方面有很大限制。
PowerShell 7.0 于 2019 年发布,随后是 7.1 版本。安装 PowerShell 7 后,可像使用 Windows PowerShell 控制台一样使用它,启动命令为 pwsh.exe (Windows PowerShell 为 powershell.exe ),且其配置文件位置与 Windows PowerShell 不同。Windows PowerShell 集成脚本环境(ISE)不支持 PowerShell 7,可使用 Visual Studio Code(VS Code)替代。微软还开发了新字体 Cascadia Code,本书中代码截图均使用该字体。PSRe
超级会员免费看
订阅专栏 解锁全文
824

被折叠的 条评论
为什么被折叠?



