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.

0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Answers

0

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"

Answered 04/05/2013 by: SMal.tmcc
Red Belt

  • 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.
Please log in to comment
0

Mmm.. as you have installed SCCM, you know that it doesnt accept driveletters in any way. Always use UNC paths to copy or relate to folders on servers.

I am curious if adding the registry items worked worked at all for you in this case?

Answered 04/03/2014 by: JVorst
White Belt

Please log in to comment
Answer this question or Comment on this question for clarity