mirror of
https://github.com/Py-KMS-Organization/py-kms.git
synced 2026-04-21 06:03:43 +00:00
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:
commit
8dea676a3d
1 changed files with 3 additions and 0 deletions
|
|
@ -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])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue