Answer the question
In order to leave comments, you need to log in
Application of changing parameters in the registry through a batch file?
There is a task to enable and disable the connection to the proxy in a simplified mode (for users) without a long drop in the settings. I decided to write a batch file.
Here is the code to turn it on (to turn it off in the corresponding place is 0):
@echo off
set REGDIR="HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings"
REG ADD %REGDIR% /v ProxyEnable /t REG_DWORD /d 1 /f
echo "work"
rundll32 user32.dll,UpdatePerUserSystemParameters
gpupdate /force
Answer the question
In order to leave comments, you need to log in
1. Add Kerio restart to the script after changing the registry.
2. Use virtualization and forget about such problems.
One change in the registry is clearly not enough - you still need to stop the proxy service (if the proxy is implemented by the service), done using the sc command, you can remotely. Or somehow force the proxy to reread the configuration in the registry - here you should already read the manuals for your proxy server.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question