PowerShell 技能连载 - 查看 Windows 生成号
当运行 winver.exe
时,您可以方便地获取到完整的 Windows 生成号。通过 PowerShell 读取生成号并不是那么明显。并没有内置的 cmdlet。
不过,要创建这样功能的函数很简单:
1 | function Get-OSInfo |
结果看起来类似这样:
1 | PS C:\> Get-OSInfo |
PowerShell 技能连载 - 查看 Windows 生成号
http://blog.vichamp.com/2018/08/08/finding-windows-build-numbers/