I have a VBscript that enables users to turn on/off the proxy server on their laptops, so that the proxy server is turned off for home use. This works without a problem in XP or older, but in Vista it will not always change the settings.
I know that it is down to the UAC in Vista, because if the UAC is turned off, the settings always change.
I thought I had a way around this, by getting the VBscript file to turn off the UAC before the rest of the script runs & then turn the UAC back on afterwards.
I can get the UAC turning off & on, but the settings for the proxy don't always take effect. I have tried making the script sleep for a number of seconds, but this still doesn't help.
If I remove the option for the UAC to turn back on after the proxy has changed, the settings change every time.
I do not want to leave the UAC disabled on these machines. Does anyone know of a way to get around this.
I am not a script writer & have got most of the info off of the Internet. I have learnt a fair bit whilst playing around with this, but some help would be appreciated.
I know that it is down to the UAC in Vista, because if the UAC is turned off, the settings always change.
I thought I had a way around this, by getting the VBscript file to turn off the UAC before the rest of the script runs & then turn the UAC back on afterwards.
I can get the UAC turning off & on, but the settings for the proxy don't always take effect. I have tried making the script sleep for a number of seconds, but this still doesn't help.
If I remove the option for the UAC to turn back on after the proxy has changed, the settings change every time.
I do not want to leave the UAC disabled on these machines. Does anyone know of a way to get around this.
I am not a script writer & have got most of the info off of the Internet. I have learnt a fair bit whilst playing around with this, but some help would be appreciated.