Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

Detect Windows server 2003 R2

$
0
0
Hi,

Can someone help me out here?
There is a solution can detect windows server 2003 R2 with WMI.
We can determine the OSversion 'WIN_2003' with macro @OSVersion.
Then, Get OtherTypeDescription through WMI.
AutoIt Code         
Func _GetOSVersion() Local $objWMIService = ObjGet("winmgmts:{impersonationLevel=impersonate}!\\.\root\cimv2") Local $colSettings = $objWMIService.ExecQuery("Select * from Win32_OperatingSystem") For $objOperatingSystem In $colSettings Return $objOperatingSystem.OtherTypeDescription Next EndFunc ;==>_getOSVersion MsgBox(0,0, _GetOSVersion())


Is there any other approach to Detect windows server 2003 R2? such as registry etc.

Any suggestions appreciated, Jerry

Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>