I have a KMS server providing licensing for Windows 7/2008 R2 and Office 2010.
I also have a VDI farm. A golden image is used to create clones to populate the farm (vSphere 5/Citrix Desktop Controller infrastructure).
We had a problem in which the Office instances were not being licensed by the KMS server; after some research, I discovered that, during the VM provisioning process, Office was not being rearmed. Once I manually rearmed enough clients, that worked fine.
So now I need to incorporate the rearming into the deployment process:
One idea is to do the rearm before the golden image is shut down, but that will simply create a whole new set of identical CMID's.
Another idea is to include a "run once" entry in the registry of the golden image before it is shutdown, so that when a new VM is deployed, it's on that instance that the rearm occurs, therefore creating uniquely identifiable CMID's. The problem is, the golden image needs to be updated from time to time and therefore booted up. At that point the rearm will take place, and with a finite number of rearms (five), the image will become useless quickly.
So, it seems that the best way to accomplish this is to not do anything rearm-related on the golden image, and instead "inject" that into the deployed VM's. It would have to take effect upon the first boot up, so Office is ready for a customer right away. So, my question is: what is the best method to accomplish this? An AD GPO could add the "run once" registry entry, but then it would have to reboot to run the rearm.
Is it possible to run a script on the fly, either using Citrix Desktop Controller or AD via GPO or logon script (and remember, it should only run one time, upon the first boot).
Thanks in advance for any help. If I'm being too narrow-minded in how to accomplish this, please share.