查找您的 PowerShell 版本可帮助您了解您可以访问哪些 PowerShell 功能。PowerShell 命令可让您显示版本号,我们将向您展示如何执行此操作。
查找您的 PowerShell 版本
您将使用 PowerShell 实用程序本身来查找版本号。
首先,打开“开始”菜单,搜索“Windows PowerShell”,然后在搜索结果中单击它。
在打开的 PowerShell 窗口中,键入以下命令,然后按 Enter:
$PSVersionTable
PowerShell 显示各种数字。在这里,显示“PSVersion”的第一个值是您的 PowerShell 版本。
您现在可以关闭 PowerShell 窗口。
额外提示:在 Windows 10 中更新 PowerShell
安装系统更新时,Windows 10 会更新内置的 PowerShell 工具。这意味着您应该让您的 PC 保持最新状态,以确保您始终运行最新版本的 PowerShell。
此外,要知道 PowerShell 7 与通常安装在 Windows 10 电脑上的版本不同。要安装此版本的 PowerShell,请下载安装程序文件或从 PC 上的 PowerShell 运行命令。如果您想查看它,我们有一个专门的指南来说明如何做到这一点。
特别声明:以上内容(如有图片或视频亦包括在内)为自媒体平台“网易号”用户上传并发布,本平台仅提供信息存储服务。
Notice: The content above (including the pictures and videos if any) is uploaded and posted by a user of NetEase Hao, which is a social media platform and only provides information storage services.