Adding Registry via SCCM
At the end of a long task sequence I want to insert a registry key and an environment variable.
I created a 'run command line' for each and entered the following data:-
reg.exe ADD "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" /v FLEXLM_TIMEOUT /t REG_SZ /d 8000000 /f
reg.exe ADD "HKLM\SOFTWARE\ESRI\Desktop10.0\ArcMap\Settings" /v TemplateDir /t REG_SZ /d X:\EP\EMEA\GB\Appli\Site\ArcGIS\10_0\Templates /f
The Environment variable is entered so I know that runs okay but the regkey for the templatedir will not appear. If I run this as a command it works though.
Beginning to annoy me as I have used similar code before and its worked. I can only presume it doesnt like the value I am trying to enter into the key.
Answers (2)
try putting quotes around the data entry
/d "X:\EP\EMEA\GB\Appli\Site\ArcGIS\10_0\Templates"
also sometimes the \ is treated a calling a special character so if that does not works try
/d "X:\\EP\\EMEA\\GB\\Appli\\Site\\ArcGIS\\10_0\\Templates"
Comments:
-
Thanks for the response.
I have tried amending the current line with " " and also with \\ but it still doesn't appear to want to create the entry. - Dedge77 11 years ago