Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need to remove system variables from client workstation and my clients are 500+ so I want to provide batch file to user to run himself to delete the system variables.

share|improve this question
I would suggest you start accepting some of the 8 other questions you have asked before you ask people to spend their time answer another one. – Scott Lundberg Sep 25 '09 at 19:07

get info about environment variables:

%> reg query "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment"

and delete the one you want with

%> reg delete /f /va "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment"\XYZ

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.