![powershell 版本](https://img-blog.csdnimg.cn/img_convert/4d6595169314f1e23f0eeb0c0d97d617.png)
powershell 版本
Powershell provides different features according to its version. Here knowing the version of the PowerShell become a necessity. There are different methods to get version of Powershell from easy to hard.
Powershell根据其版本提供不同的功能。 在这里,了解PowerShell的版本成为必需。 有多种方法可以使Powershell的版本变得容易。
PowerShell版本 (PowerShell Versions)
Also PowerShell is updated with the Windows Update but following lines provides information about the PowerShell versions and related Windows or Operating System version.
PowerShell也随Windows Update更新,但以下几行提供了有关PowerShell版本以及相关的Windows或操作系统版本的信息。
- Version 1.0: shipped 2006 as optional download. Obsolete. 版本1.0:2006年作为可选下载发布。 过时的
- Version 2.0: shipped 2009 as part of Windows 7/Server 2008. The only version that still supports Windows XP and Server 2003.版本2.0:2009年作为Windows 7 / Server 2008的一部分提供。唯一仍支持Windows XP和Server 2003的版本。
- Version 3.0: shipped 2012 as part of Windows 8/Server 2012. Completed the core language features and started to ship the ISE Editor. 版本3.0:2012年作为Windows 8 / Server 2012的一部分发布。完成了核心语言功能,并开始发布ISE编辑器。
- Version 4.0: shipped 2013 as part of Windows 8.1/Server 2012R2. Added DSC (Desired State Configuration) 版本4.0:2013年作为Windows 8.1 / Server 2012R2的一部分提供。 添加了DSC(所需状态配置)
- Version 5.0: shipped 2015 as part of Windows 10. This version is a major milestone with various new features and language extensions. 版本5.0:作为Windows 10的一部分发布于2015年。此版本是一个重要的里程碑,具有各种新功能和语言扩展。
- Version 5.1: shipped 2016 as part of Windows 10 Anniversary Update and Server 2016. 版本5.1:2016年作为Windows 10周年更新和Server 2016的一部分发布。
使用PSVersionTable环境变量 (Using PSVersionTable Environment Variable)
Simplest and reliable solution is using environment variable. PSVersionTable variable provides PSVersion key for the