如何判断windows版本?

2017年6月20日 21:48

 
windows版本名称太多,怎么通过版本号,取得对应的版本名称?
 
  • 版本号与市场名称的关系
在微软与IBM分家的时候Windows操作系统改名叫做Windows NT,第一个版本是Windows NT 3.1。
后来由于市场需要,在每次发布Windows之前,都会给Windows NT取个别名
也就是xp、win7、win8。例如下面的Version 10.0.14393,其实是Windows NT的版本号。
 
只要清楚NT版本号与名称的映射关系,就可以通过版本号得到名称
 
  • 获取版本号(powershell)
PS C:\Users\wyq> Get-WmiObject Win32_OperatingSystem

SystemDirectory : C:\WINDOWS\system32
Organization    :
BuildNumber     : 14393
RegisteredUser  : wyq
SerialNumber    : 00330-80000-00000-AA130
Version         : 10.0.14393
  • 映射关系
Windows NT 3.1    Windows NT 3.1
Windows NT 3.5    Windows NT 3.5
Windows NT 3.51   Windows NT 3.51
Windows NT 4.0    Windows NT 4.0
Windows NT 5.0    Windows 2000
Windows NT 5.1    Windows xp
Windows NT 5.2    Windows xp、Windows Server 2003、Wwindows Server 2003 R2
Windows NT 6.0    Windows Vista、Windows Server 2008
Windows NT 6.1    Windows 7、Windows Server 2008 R2
Windows NT 6.2    Windows 8、Windows Phone 8、Windows Server 2012
Windows NT 6.3    Windows Phone 8.1、Windows Server 2012 R2
Windows NT 6.4    Windows 10(技术预览版)
Windows NT 10.0   Windows 10
对照映射表,10.0.14393就是Windows 10
 
此生必看的科学实验-水知道答案
精神病为什么治不好
百病之源
净土大经科注2014

 

Tags: powershell windows
评论(0) 阅读(2859)

windows命令查看软件安装情况

2017年4月09日 14:07

在windows上,可以通过控制面板,查看软件安装情况。那么除此之外还有其它方法吗?
 
  • powershell命令
PS C:\Users\wyq> Get-WmiObject -class Win32_Product |Select-Object -Property name,version

name                                                                                                 version
----                                                                                                 -------
Microsoft Visual C++ Compiler Package for Python 2.7                                                 9.0.1.30729
Microsoft .NET Framework 4.5.1 Multi-Targeting Pack                                                  4.5.50932
Microsoft Visual C++  x64-x86 Cross Compilers - CHS Resources                                        12.0.21005
Microsoft SQL Server 2012 T-SQL Language Service                                                     11.1.3000.0
....
 

Tags: powershell windows
评论(1) 阅读(2373)

hyper-v查看虚拟机启动顺序

2017年2月02日 21:56

PS C:\> get-vm 虚拟机名称 |get-vmbios
VMName            StartupOrder                            NumLockEnabled
------            ------------                            --------------
虚拟机名称        {CD, IDE, Floppy, LegacyNetworkAdapter} False

Tags: powershell
评论(40) 阅读(3512)

powershell如何ping

2017年2月02日 21:47

PS C:\Users\xxx> Test-NetConnection 192.168.1.13
ComputerName           : 192.168.1.13
RemoteAddress          : 192.168.1.13
InterfaceAlias         : 以太网
SourceAddress          : 192.168.1.100
PingSucceeded          : True
PingReplyDetails (RTT) : 0 ms



PS C:\Users\xxx> Test-NetConnection 192.168.1.13 -Port 8000
ComputerName           : 192.168.1.13
RemoteAddress          : 192.168.1.13
RemotePort             : 2179
InterfaceAlias         : 以太网
SourceAddress          : 192.168.1.100
PingSucceeded          : True
PingReplyDetails (RTT) : 0 ms
TcpTestSucceeded       : True

 

Tags: powershell
评论(38) 阅读(2293)