5

如何在 Windows 中查看 PowerShell 版本号

 1 year ago
source link: https://www.sysgeek.cn/windows-powershell-version-check/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Powershell

Windows PowerShell 是 Windows 用户「任务自动化」和「系统管理」的专业工具,它的工作方式与「命令提示符」类似,可以通过命令行 Shell 来管理绝大多数 Windows 和微软产品的设置。

如果你是普通用户,查看并确保 Windows 中安装了最新版本的 PowerShell 是很有必要的。下面系统极客就为大家介绍,在 Windows 中查看 PowerShell 版本两种方式。

在 Windows 中查看 PowerShell 版本

通过 PowerShell 自身的命令来查看当前版本是最简单的操作方式,步骤如下:

1 在「开始」菜单中搜索PowerShell并打开「Windows PowerShell」界面

2 在打开的界面中执行如下命令:

$PSVersionTable
windows powershell

命令执行后会输出有关 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
注册表编辑器

3 通过查看PowerShellVersion注册表值来确认 PowerShell 版本。


通常,PowerShell 会通过自动更新自行更新,也可以从微软 PowerShell 官网获取最最新更新、文档和参考示例。


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK