相关疑难解决方法(0)

如何从PowerShell命令行查找Windows版本?

如何找到我正在使用的Windows版本?

我正在使用PowerShell 2.0并尝试:

PS C:\> ver
The term 'ver' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify tha
t the path is correct and try again.
At line:1 char:4
+ ver <<<< 
    + CategoryInfo          : ObjectNotFound: (ver:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException
Run Code Online (Sandbox Code Playgroud)

我该怎么做呢?

windows powershell powershell-2.0

106
推荐指数
13
解决办法
33万
查看次数

从非特权用户命令行中找出Windows版本

我需要一种方法来找出我使用简单的命令行工具运行的Windows版本(没有powershell).我需要它来自非特权用户,我需要能够解析Windows XP,Vista,服务器2008和7之间的差异.我目前正在使用: wmic os get Caption但是当用户没有时它会失败有权运行wmic.

更新: 为了澄清,我需要这个命令不打破不同的服务包级别等,这可能会排除解析特定的版本号.此外,如果您查看 Windows版本列表,您将看到Windows 7和Server 2008 r2上报告的数字是相同的.

windows cmd

14
推荐指数
3
解决办法
4万
查看次数

标签 统计

windows ×2

cmd ×1

powershell ×1

powershell-2.0 ×1