标签:io os sp on window ui windows table ca
查询PowerShell当前版本
$psversiontable.BuildVersion.Major
查询Windows当前版本:
[System.Environment]::OSVersion.Version.Major
([string]::concat((cmd /c "ver"))).split(" ")[3].split(".")[0]
标签:io os sp on window ui windows table ca
原文地址:http://www.cnblogs.com/dreamer-fish/p/4056957.html