小编Hkm*_*oub的帖子

如何检测每个 Windows 操作系统是否与 powershell 一起使用

我想检查远程机器中使用的是哪个版本的 Windows,我正在使用以下命令:

$version=[Environment]::OSVersion.Version | % {"{0}.{1}.{2}" -f $_.Major,$_.Minor,$_.Build}
Run Code Online (Sandbox Code Playgroud)

我得到例如 windows 7 的结果:6.1.7600

但我发现了一个问题:

Windows Server 2012 R2 有:6.1.9600

和 Windows 8.1 也是:6.1.9600

所以我想知道是否有其他解决方案来获取 Windows 版本?

windows powershell

2
推荐指数
1
解决办法
3万
查看次数

如何创建 PowerShell 图形界面?

我正在使用 PowerShell 处理一个项目

我想知道创建 PowerShell GUI 的最佳方法是什么?

gui powershell-4.0

1
推荐指数
1
解决办法
2万
查看次数

标签 统计

gui ×1

powershell ×1

powershell-4.0 ×1

windows ×1