I would like to check which version of windows is used in a remote machine, I'm using this command:
$version=[Environment]::OSVersion.Version | % {"{0}.{1}.{2}" -f $_.Major,$_.Minor,$_.Build}
I get the result for example windows 7 : 6.1.7600
but I found a problem :
Windows server 2012 R2 have : 6.1.9600
and windows 8.1 too : 6.1.9600
so I'm wondering if there is an other solution to get the version of windows?
Recent Questions...
ما را در سایت Recent Questions دنبال میکنید
برچسب:
نویسنده: استخدام کار
بازدید: 161
تاريخ: چهارشنبه
12 خرداد
1395 ساعت: 18:50