Search code examples
windowsenvironment-variablesgroup-policy

Are environmental variables language specific?


I need to setup a script in group policy that we be used in different regions of the world. Are environmental variables such as %ProgramFiles% language specific? I'm hoping that a script of %ProgramFiles% can be used both in spain and france even though their language is setup for the specific regions.

Thanks


Solution

  • No. They are not language specific.

    When you use %ProgramFiles% the operating system will check in Windows registry where %ProgramFiles% maps to. This mapping is done during Windows installation and therefore using the placeholder %ProgramFiles% you'll have a language/country agnostic solution.