/build/static/layout/Breadcrumb_cap_w.png

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.


0 Comments   [ + ] Show comments

Answers (2)

Posted by: SMal.tmcc 10 years ago
Red Belt
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"


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 10 years ago
Posted by: JVorst 9 years ago
White Belt
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?

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ