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.
2 Answers
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