这是在Windows 10/8/7上检查PowerShell版本的方法[Partition Magic]

概括 :

查找PowerShell版本

如何在Windows 10/8/7上检查PowerShell版本?这个问题困扰着许多Windows用户。但是您现在不必担心这一点,因为这篇文章来自 迷你工具 将向您显示有关如何在Windows PC上查找PowerShell版本的一些详细步骤。





快速导航:

许多Windows用户知道Windows PowerShell是什么,但不知道他们使用的是哪个版本的PowerShell。因此,许多用户在Internet上问:有没有一种方法可以检查PowerShell版本?答案是肯定的。如果您想了解详细的步骤,请继续阅读。

关于Windows PowerShell

Windows PowerShell是Microsoft在2016年发布的Windows命令行外壳和脚本语言。它可以帮助系统管理员和超级用户从命令行管理计算机。 PowerShell是专门为系统管理员设计的,它使您可以访问数据存储,例如注册表和证书存储。

如果您是命令行用户和脚本编写者,则最好使用最新的PowerShell版本。但是,这里有一个问题:如何判断您是否正在使用最新版本的PowerShell?好吧,在我们学习如何检查PowerShell的版本之前,首先,您应该了解PC上预安装了哪个版本的Windows PowerShell:



  • PowerShell 1.0:Windows XP SP2,Windows Server 2003 SPI和Windows Vista。
  • PowerShell 2.0:Windows7 SP1和Windows Server 2008 R2 SP1
  • PowerShell 3.0:Windows 8和Windows Server 2012
  • PowerShell 4.0:Windows 8.1和Windows Server 2012 R2
  • PowerShell 5.0:Windows 10和Windows Server 2016

根据所使用的操作系统,您应该知道现在使用的PowerShell的版本。此外,如果您使用的是Windows 10,则可以通过Windows Update将PowerShell版本更新为Powershell 5.1。

了解Windows版本中预装的PowerShell版本后,您可能会问:如何在PC上查看详细的PowerShell版本信息?如果要获取有关当前使用的PowerShell版本的更多详细信息,可以尝试下一部分中提到的PowerShell version命令。

如何检查PowerShell版本

您可以按照以下步骤运行PowerShell版本命令,并在PC上检查当前PowerShell版本。以下步骤适用于Windows 10,Windows 8和Windows 7用户。



步骤1。 右键单击Windows 开始 菜单,然后选择 Windows PowerShell 打开一个新的PowerShell窗口。或者,您可以按 Windows + R 键盘上的按键以调出“运行”对话框并键入 电源外壳 在运行框中,然后点击 进入 运行它。

第2步。 在PowerShell窗口中,键入以下命令,然后单击 进入

$ PSversionTable



第三步 从结果来看, PS版本 代表您的PowerShell版本。从下面的截图中,您应该知道当前的PowerShell版本是5.1.17763.1007。

检查PowerShell版本

第4步。 此外,还可以使用另外两个PowerShell版本命令 get-host |选择对象版本$ host.version 命令以检查您的PowerShell版本。



PowerShell版本命令

如果您的Windows PowerShell版本不是最新版本,则可以通过及时安装最新的Windows更新来将其更新为最新版本。

您可能对此帖子感兴趣:解决Windows 10的7种解决方案无法更新。 #6太棒了

结论

阅读这篇文章后,现在您应该知道如何在Windows 10/8/7上检查PowerShell版本。您有更好的解决方案吗?我们很高兴您能与我们分享。