Setting up a logon script via GPO

Group policies do not activate KMS clients, but they can enable the execution of scripts that are aimed at activating KMS clients. So, first things first: a script needs to be compiled and then a GPO set up that will execute that script once the user logs in to the domain.