ctsalina
asked on
Change registry key based on certain criteria
We have a need to allow a user to run a batch file that will compare a registry setting and change if it doesn't match a specified dword value. For example: We'd like to compare the proxyenable value to see if it's 0 or 1. Then based on that value it should change to the opposite value. Thanks!
ASKER
We just want the user to be able to double-click an icon on the desktop. The batch file should check for the value of the proxyenable key. If it's 0 it should change it to 1 and vice-versa. This isn't a permissions issue. Also we can't use GPO for this circumstance. These computers come and go off our network. I've written a vbs script, but although I see the keys change as I want, it doesn't seem to be getting refreshed in the browser settings.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I understood about the gpo, but I needed to circumvent that process and get the reg settings to work with a script I had. I think I found a solution and appreciate the efforts.
The problem is that your example can be controlled through a GPO i.e. certain users will have their configuration reflect that they can only access data throgh a proxy while other users can connect directly.
What is it that you want to do?
It also depends on where this value is. Hkey_current_user or hkey_local_machine.