/build/static/layout/Breadcrumb_cap_w.png

System Environment variable & User Environmental variable?

I know how to add.But i want to know why we add system & user Environmental variable.why some time we choose to add as user and some times as system Environmental variable.what will happen if add only user Environmental variable.


0 Comments   [ + ] Show comments

Answers (3)

Answer Summary:
Posted by: JasonEgg 6 years ago
Red Belt
1

Top Answer


Comments:
  • Thanks i got the thing.System Environmental variable is for every one and user is for specific user.Then i wish to add user variable in my application packaging only for one user ie user 1 then in scripting part how should i write any idea. - @Imran9 6 years ago
    • Are you using KACE or SCCM? Do you have control over Group Policy? - JasonEgg 6 years ago
Posted by: anonymous_9363 6 years ago
Red Belt
1
 i wish to add user variable in my application packaging only for one user
Google John McFadyen's article on self-healing.

Comments:
  • You can use a Custom Action to do that, that will execute in user context at install/reinstall. The custom action will be a vbs that checks the username and if condition is true, sets the variable. Also put in a user specific info in the package so when you launch the shortcut( advertised shortcut) it will go into self-healing and execute the CA. If you don't have shortcuts - use ActiveSetup. - dragosCI 6 years ago
Posted by: anonymous_9363 6 years ago
Red Belt
0
There is no need whatsoever to use a CA to add environment variables. The Environment table exists for that very purpose, although, as the data ends up in the registry, I use the Registry table.
 
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