[En] Enable or disable IE proxy using Powershell

September 06, 2011 -

I’m currently working in a company where I have to set up a proxy to connect my laptop to the Internet. Because I'm fed up to enable it each morning and disable it each evening, I made two Powershell scripts to do these operations :

EnableProxy.ps1 :

set-itemproperty 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings' 
-name ProxyEnable -value 1

DisableProxy.ps1 :

set-itemproperty 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings' 
-name ProxyEnable -value 0 

Et voilà !

Hope this helps Winking smile

Comments

Share

Tags


Twitter


RT @msdev_fr: #Coding4Fun revient cette année à #experiences17! Ne manquez pas l'ultimate edition!! #c4f https://t.co/QMqqB8vft0 RDV le 4oc…

September 22, 2017 17:23

Introducing Azure Availability Zones for resiliency and high availability https://t.co/CCbU2D0scn

September 22, 2017 14:59

RT @danvy: Evolution de l’ #IoT, du M2M au Edge Computing avec @AmadeusITGroup & @WayKonect aux #MSExperiences le 4/10 à 13h30 https://t.co

September 21, 2017 17:52

Announcing larger, higher scale #storage accounts in #Azure https://t.co/LAtQK09YuP

September 21, 2017 14:02

RT @Azure_France: #experience17 Cloud hybride: vers une approche différenciante & concrète https://t.co/ANpLes23G3 cc @williamredhat @redha

September 21, 2017 13:29

More and more fun with #Terraform on #Azure https://t.co/M4ASlkz6xa

September 20, 2017 16:59

#Serverless: Processing 100,000 Events Per Second on @Azure #Functions https://t.co/FxibP0YPo6

September 20, 2017 16:58

Just in case you miss this big news: a preview of #Linux #Docker Containers on Windows is available https://t.co/LIFNYDrr00

September 15, 2017 14:27

Good news for #dotnetcore developers: Announcing #SignalR for #aspnet Core 2.0 https://t.co/VTPv3zlOty

September 15, 2017 14:25

Using #Azure AD Managed Service Identity it is now simpler than ever to keep credentials out of the code! https://t.co/LEYzrcGbkf

September 15, 2017 14:24

Microsoft Tech Summit is back, w/ a date in Paris!https://t.co/hzG5Qp4p65

September 15, 2017 14:22

Events, Data Points, and Messages - Choosing the right @Azure messaging service for your data https://t.co/KGWQ9baTYA

September 15, 2017 14:21

Function Proxies adds Mock APIs to the Portal. #Azure #Serverless https://t.co/GJpBikKtdZ

September 15, 2017 14:20

RT @Azure_France: .@jenkinsci et Kubernetes en intégration continue dans #Azure à #experiences17 https://t.co/iA6KD8Nzsc cc @jpbriend @Clo

September 15, 2017 09:55

#Windows for #Linux Nerds https://t.co/NoDOZ7R527 via @jessfraz

September 15, 2017 07:21