Modify

Opened 2 months ago

Last modified 6 weeks ago

#3849 assigned Bug

Server 2022 @OSVersion returns WIN_2019

Reported by: anonymous Owned by: Jpm
Milestone: Component: AutoIt
Version: 3.3.15.4 Severity: None
Keywords: Cc:

Description

Server 2022 was recently released just wanted to bring it to your attention. @OSVersion tested on beta 3.3.15.4

Attachments (1)

Jpm1.png (2.2 KB) - added by mLipok 7 weeks ago.
Results on Windows2022

Download all attachments as: .zip

Change History (8)

comment:1 Changed 2 months ago by mLipok

btw.
Can anyone test it on Windows 11 as well ?

comment:2 follow-up: Changed 2 months ago by Jpm

Hi,
as I don't have access to server 2022,
can you give me the msgbox result of the following script.
For the time being the MSDN doc does not describe the corresponding value.
For Win11 perhaps we need to wait October 5th
Thanks for the help

; Dec, Int, Number Constants
Global Const $NUMBER_AUTO = 0
Global Const $NUMBER_32BIT = 1
Global Const $NUMBER_64BIT = 2
Global Const $NUMBER_DOUBLE = 3

Global Const $tagOSVERSIONINFO = 'struct;dword OSVersionInfoSize;dword MajorVersion;dword MinorVersion;dword BuildNumber;dword PlatformId;wchar CSDVersion[128];endstruct'

ConsoleWrite('Windows version: ' & _WinAPI_GetVersion() & @CRLF)

Func _WinAPI_GetVersion()
        Local $tOSVI = DllStructCreate($tagOSVERSIONINFO)
        DllStructSetData($tOSVI, 1, DllStructGetSize($tOSVI))

        Local $aCall = DllCall('kernel32.dll', 'bool', 'GetVersionExW', 'struct*', $tOSVI)
        If @error Or Not $aCall[0] Then Return SetError(@error, @extended, 0)

        MsgBox(0, "OSVERSIONINFO", "MajorVersion = " & DllStructGetData($tOSVI, "MajorVersion") & @CRLF & _
                        "MinorVersion = " & DllStructGetData($tOSVI, "MinorVersion") & @CRLF & _
                        "BuildNumber = " & DllStructGetData($tOSVI, "BuildNumber"))

        Return Number(DllStructGetData($tOSVI, "MajorVersion") & "." & DllStructGetData($tOSVI, "MinorVersion"), $NUMBER_DOUBLE)
EndFunc   ;==>_WinAPI_GetVersion
Last edited 8 weeks ago by mLipok (previous) (diff)

comment:3 in reply to: ↑ 2 Changed 8 weeks ago by mLipok

Replying to Jpm:

For Win11 perhaps we need to wait October 5th

Time was ticking and oops it's today.

Windows 11 gives me such results:

MajorVersion = 10
MinorVersion = 0
BuildNumber = 22000

https://www.autoitscript.com/forum/topic/206774-windows11autoit-chat-room-for-experience-exchange/?do=findComment&comment=1490352

Last edited 8 weeks ago by mLipok (previous) (diff)

comment:4 Changed 7 weeks ago by Jpm

Thanks for Win11
Please post the same for Server 2022

comment:5 Changed 7 weeks ago by mLipok

Changed 7 weeks ago by mLipok

Results on Windows2022

comment:6 Changed 7 weeks ago by mLipok

This was tested on:
Windows Server 2022 Datacenter Evaluation
MajorVersion = 10
MinorVersion = 0
BuildNumber = 20348

Last edited 7 weeks ago by mLipok (previous) (diff)

comment:7 Changed 6 weeks ago by Jpm

  • Owner set to Jpm
  • Status changed from new to assigned

Thanks
Fix sent to Jon

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

Action
as assigned The owner will remain Jpm.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.