I need to create a template's variable for the Windows CD Key. I have a script VBS wich backup the CD key from Windows, into a system variable, VE_XP_CDKEY. As this variable is read by the inventory scan, I want to use it in a provisionning template.
So, I create in Public variable windows, the following variable : LDXPCDKEY; Database Value; "Computer"."Environment"."Variable"."VE_XP_CDKEY".
I hoped that this variable will have worked the same way that the %ldHostname%. But it still not work, and I dont understand why.
In my template, I copy a sysprep.inf and then, I change the default computer name by the old one's using "%ldHostname%" . I would like to do the same thing, and change the default cd key by the old one's using "%LDXPCDKEY%.
I posted the capture of an inventory window with the environment variable. Note that I remove the real CD key.
Please, someone have an idee?
CDKEY.png 69.8 K