Page 2 of 2
Re: WADS - Install WAPT agent - post install script
Published: May 20, 2022 - 11:19
by smandel
Yes, that's right. When Windows isn't activated, SetupComplete runs.
But when the answer file asks to automatically activate Windows without specifying a key, it will use the OEM key.
And in that case, SetupComplete doesn't run.
Re: WADS - Install WAPT agent - post install script
Published: May 20, 2022 - 11:30
by smandel
So, to get around the problem, I'm not touching the template at the Windows key level.
I extracted the OEM key from my HP desktop PC.
And in my SetupComplete I do the following:
Code: Select all
slmgr //B /upk
slmgr //B /ipk XXXX-XXXX-XXXX-XXXX
"//B" is for the command to execute in silent mode
And so it activates my Windows after deployment.
I tested the key on different HP (UEFI) models and it works, Windows activates with a digital key.
Re: WADS - Install WAPT agent - post install script
Published: May 20, 2022 - 1:55 PM
by sfonteneau
Thanks for the test, I'll take a look here
Re: WADS - Install WAPT agent - post install script
Published: May 20, 2022 - 2:19 PM
by sfonteneau
Indeed, good point, other solutions have the same problem:
https://forums.ivanti.com/s/article/Iss ... uage=en_US
Re: WADS - Install WAPT agent - post install script
Published: May 23, 2022 - 12:28
by dcardon
Hi smandel,
we're going to initiate license activation at the end in the postinst script using slmgr rather than in the XML file. This has been committed internally to master and will be available in the next release. Thanks smandel for reporting the bug!
Denis
Re: [SOLVED] WADS - Install WAPT agent - post install script
Published: May 23, 2022 - 1:57 PM
by smandel
Great! No problem.
If I can help move things forward...
