mwiedemeyer / ProxySwitcher

Proxy Switcher allows you to automatically execute actions, based on the detected network connection. As the name indicates, Proxy Switcher comes with some default actions, for example setting proxy settings for Internet Explorer, Firefox and Opera.
Apache License 2.0
135 stars 60 forks source link

GPO settings - settings files are not be copied to the local client #26

Closed maestro7879 closed 6 years ago

maestro7879 commented 6 years ago

I'm using the GPO template. If I delete the files in ...\AppData\Roaming\ProxySwitcher\V3 I assumed that either when the GPO is refreshed or proxyswitcher is restarted it would pull those locally files from the network share I configured in the GPO. That's not happened, it will pull the log file but nothing else.

mwiedemeyer commented 6 years ago

Hi, yes, that is how it is supposed to work. See here: https://github.com/mwiedemeyer/ProxySwitcher/blob/2d072c1755e73af3768ca4b4143c37d7fad78816/ProxySwitcher.Core/Policy/PolicyManager.cs#L61 It copies all files from the location specified in the policy to the local directory. The user starting ProxySwitcher needs the permission to access the network share you specified. If there is an error, you should see a message in the log. Please search for Copy settings failed

maestro7879 commented 6 years ago

Thanks for the reply. I confirmed that the users do have access to the folder. The files will copy if I delete the Log.txt file from the location where the files are stored. This only works once as the Log.txt file is created again. I do see the Copy settings failed line in the log.

If I move the location in the registry to something like c:\temp it works. Its only when its moved to a file server that there is an issue.

mwiedemeyer commented 6 years ago

Ok, so if you see the error message please post it here, so I might see what the problem is.

maestro7879 commented 6 years ago

[9/22/2017 9:55:44 AM] Copy settings failed Is there a log that's more verbose that I should include ?

maestro7879 commented 6 years ago

Solved - Interaction issue with another program.