Hi guys
I want to deploy an application through sccm 2012 r2 with a license key in the command line. So far no problem, with the paramaterISX_SERIALNUMBER="XXX" I can handle that. So command line looks like:
msiexec /i "XY.msi" ISX_SERIALNUMBER="XXX"
But here's the problem. That license key changes very often, usually a key can just be used for 2-3 installation. After that I get a new key which I have to use (we have no volume licensing... yes I know... do not ask...).
I tried to create a machine variable (device - properties - variables) with the license key. but I didn't manage to get the variable in the command line correctly. I triedISX_SERIALNUMBER="%variable%" but it didn't work. I realised that those variables just can be used with a TS. But I really don't want to use a TS for software deployments...
After that I thought I'll try to get the variable with powershell and it worked. But just with an Administrator account who has access to the server. If i run the script in system context while deploying, it fails...
Does anyone have another way to deploy Software with a Licence Key as a computer variable? Or any other way to specify a specific Licence key for a specific computer?
thanks in advance
p.s. I know I could entering it manually... but that's not an option at this time.