Solved

Enable\Disable Internet Proxy Settings through Task Schedular

Posted on 2013-06-10
4
1,339 Views
Last Modified: 2013-06-22
Hello,

most of our users face a problem with their laptops when they try to connect to the internet outside the Organization that they should disable the proxy.

Then when they come back to work they have to enable the proxy to use the resources of the organization.

Is there a way to enable or disable the proxy automatically (after checking if they connect to the domain or not) through the Task Scheduler on windows 7 or 8.

Regards,
0
Comment
Question by:fadyaz
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 30

Expert Comment

by:Rich Weissler
ID: 39237444
Not a bad idea.

You should be able to create a task that triggers on Workstation Unlock, or at Startup, with a condition that checks "Start only if the following network connection is available."

The action will include Netsh command(s) to modify the proxy settings.

Unfortunately what I can't find is a good way to switch your settings back to not use the proxy.  :-(  All I can see to do is set one task to run on your triggered event to turn the proxy settings off, and a second task triggering on the same event, with a 30 second or 1 minute delay set to turn the proxy on, and that task to trigger only on the condition that the specific network is detected.

(*ponder*  I wish I had a more graceful solution.)
0
 
LVL 16

Expert Comment

by:ThinkPaper
ID: 39238191
I wonder if you could set a GPO to turn on the proxy, and set a logoff/shutdown script to disable proxy. This would allow for the laptops to get the proxy when they are connected, but turn it off whenever they log off or shutdown their laptop... That would ensure that if they happen to not be connected internally, the settings would stay the same. If they are connected, the settings would revert back.

Not the cleanest solution... =/
0
 
LVL 24

Expert Comment

by:DMTechGrooup
ID: 39238655
Here is a good thread that looks at what connection they are on when they log on and then sets the proxy accordingly.

I agree the GPO is a good option or as a startup script.

http://www.petri.co.il/forums/showthread.php?t=12363
0
 
LVL 10

Accepted Solution

by:
Mohammed Rahman earned 500 total points
ID: 39240013
http://www.softpedia.com/get/Internet/Other-Internet-Related/IE-Proxy-Toggle.shtml

The above application will enable users to easily toggle the Internet Explorer proxy from the system tray. This way, users can turn it on or off with a simple mouse click, without needing to access any other menus or windows.

I am pretty sure that the software on below link can do the magic.
http://proxyswitcher.net/
0

Featured Post

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

While rebooting windows server 2003 server , it's showing "active directory rebuilding indices please wait" at startup. It took a little while for this process to complete and once we logged on not all the services were started so another reboot is …
Last week, our Skyport webinar on “How to secure your Active Directory” (https://www.experts-exchange.com/videos/5810/Webinar-Is-Your-Active-Directory-as-Secure-as-You-Think.html?cid=Gene_Skyport) provided 218 attendees with a step-by-step guide for…
This Micro Tutorial will give you a basic overview of Windows DVD Burner through its features and interface. This will be demonstrated using Windows 7 operating system.
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question