Merge pull request #143 from Rileran/fix/windows-server-2019

fix: windows server 2019 activation failing because of incomplete entry in KmsDataBase.xml
This commit is contained in:
simonmicro 2026-04-17 10:27:57 +02:00 committed by GitHub
commit 8dea676a3d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -27,6 +27,9 @@ def epidGenerator(kmsId, version, lcid):
except IndexError:
# fallback to Windows Server 2019 parameters.
pkeys.append( ('206', '551000000', '570999999', '[0,1,2]') )
except KeyError:
# ignore malformed/incomplete entries
pass
pkey = random.choice(pkeys)
GroupId, MinKeyId, MaxKeyId, Invalid = int(pkey[0]), int(pkey[1]), int(pkey[2]), literal_eval(pkey[3])