![Powershell](https://img.sysgeek.cn/img/logo/powershell/powershell-2.jpg)
Windows PowerShell 是 Windows 用户「任务自动化」和「系统管理」的专业工具,它的工作方式与「命令提示符」类似,可以通过命令行 Shell 来管理绝大多数 Windows 和微软产品的设置。
如果你是普通用户,查看并确保 Windows 中安装了最新版本的 PowerShell 是很有必要的。下面系统极客就为大家介绍,在 Windows 中查看 PowerShell 版本两种方式。
在 Windows 中查看 PowerShell 版本
通过 PowerShell 自身的命令来查看当前版本是最简单的操作方式,步骤如下:
1 在「开始」菜单中搜索PowerShell并打开「Windows PowerShell」界面
2 在打开的界面中执行如下命令:
$PSVersionTable
![windows powershell](https://img.sysgeek.cn/img/2022/06/windows-powershell-version-check-2.jpg)
命令执行后会输出有关 PowerShell 的完整信息列表,通过PSVersion值可知当前 PowerShell 版本为 5.1.22000.653。
通过注册表查看 PowerShell 版本
Windows 注册表是一个集中的分层数据库,专门用于存储和保存 PC 的低级配置信息。 如果你不想启动 PowerShell,可以查看注册表来确定当前 PowerShell 版本:
1 使用Windows + R快捷键打开「运行」——执行regedit打开「注册表编辑器」
2 导航到:
计算机\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\3\PowerShellEngine
![注册表编辑器](https://img.sysgeek.cn/img/2022/06/windows-powershell-version-check-3.jpg)
3 通过查看PowerShellVersion注册表值来确认 PowerShell 版本。
通常,PowerShell 会通过自动更新自行更新,也可以从微软 PowerShell 官网获取最最新更新、文档和参考示例。
最新评论
download.docker.com在国内是一个不存在的网站,对于上面命令中涉及https://download.docker.com/linux/ubuntu/的,通通修改为https://mirrors.aliyun.com/docker-ce/linux/ubuntu/即可。也就是一开始定阿里云的镜像网站为主要源
LTSC主要区别是支持时间不同,win10 HOME/PRO/企业版/教育版的官方支持时间都是到2025年10月14日,而LTSC的安全更新会持续到2027年1月12日。
👏
抱歉,我选错了引导类型。一切如文中所述。感谢分享!