15 January 2014

Adding environmental variables across all profiles without a reboot

Posted By: Mick Pletcher - 2:28 PM


& Comment

This can be done without having to reboot the machine. You want to use setx.exe to create the new variable. The format to do this is:

  • setx.exe <environmental variable name> <value> /m 
  • i.e. setx.exe MIG_IGNORE_PROFILE_MISSING 1 /m
In order to not have to reboot the machine, go to task manager and end the process tree of explorer.exe. Open explorer.exe back up and the new environmental variable is now present. Ending the process of just explorer.exe will not make the environmental variable visible.

About Mick Pletcher

My blog is here to help solve issues I have encountered and solved, publish scripts I have written, and educate others in understanding areas that are not well covered


Post a Comment

Copyright © 2013 Mick's IT Blogs™ is a registered trademark.