Recommended Posts

I don't know how to create a GUI shortcut to that, but I can tell you where those settings are located in the Registry:

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings

If you browse to that using Registry Editor, you will see (or you will have to create) a REG_SZ value named "AutoConfigURL". If that value exists and contains a URL, the setting is activated. If you delete the value or empty it, the setting is disabled. Maybe you can work with that to create a script or a .reg file that enables or disables it with a simple double click. Let me know if you need more help.

  • Like 1
  • Thanks 1

@leonsk29 Many thanks. I found the key. By enabling the toggle button (in Windows 11 Proxy Setting), the key would be created and by toggling it off, the key would be removed automatically 👍🏻.
I want to convert this key to a shortcut. I can export the key and double-click on it to enable the PAC. What do I have to do to remove the key from Registry?

image.png.5257dd821b4e6759368d199506ab1f06.png

 

  • Like 1
  On 25/07/2023 at 19:51, neo2023 said:

@leonsk29 Many thanks. I found the key. By enabling the toggle button (in Windows 11 Proxy Setting), the key would be created and by toggling it off, the key would be removed automatically 👍🏻.
I want to convert this key to a shortcut. I can export the key and double-click on it to enable the PAC. What do I have to do to remove the key from Registry?

image.png.5257dd821b4e6759368d199506ab1f06.png

 

Expand  

I would use the "reg delete" command inside a batch file to double click it and remove the "AutoConfigURL" value when I want the setting to be disabled. That's one of many ways to do it, though.

Something like:

reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v AutoConfigURL

  On 26/07/2023 at 06:57, neo2023 said:

@Brandon H Thanks. I know nothing about creating batch files with "If"!

Expand  

Here try this :) I use batch scripts all the time at work to help automate work arounds and fixes

@echo off
title Toggle Proxy Auto Config URL

reg query "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v AutoConfigURL

if %errorlevel% == 0 (goto Delete) else (goto Add)

:Add
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v AutoConfigURL /t REG_SZ /d https://wwww.domain.here
cls
echo Proxy Auto Config URL enabled
pause
exit

:Delete
reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v AutoConfigURL
cls
echo Proxy Auto Config URL removed
pause
exit

Note: save this in to a .bat file and replace the URL on the :Add line with your real URL.

Thanks 🙏🏻. What code do I have to add to disable showing this confirmation dialogue? I want to run the bat file in "Quiet" mode (no CMD window and no confirmation dialogue). Just click on the "bat" file to enable/disable automatically. I have heard, bat files can be run without showing the window (CMD Window). Could it be possible here?

1= Click on the Bat file

2= Click on the Bat file to disable the PAC

3= Extra click to close the window (after confirmation=Yes)

image.png.aecd679bbd38cc0e600468f91781961c.png

Another question: The toggle button (in Windows 11 Proxy Settings) won't change after enabling/disabling with the Reg key. Is this behaviour OK?

image.png.f7555036326e9da284277d7607778b11.png

  On 26/07/2023 at 13:58, neo2023 said:

Thanks 🙏🏻. What code do I have to add to disable showing this confirmation dialogue? I want to run the bat file in "Quiet" mode (no CMD window and no confirmation dialogue). Just click on the "bat" file to enable/disable automatically. I have heard, bat files can be run without showing the window (CMD Window). Could it be possible here?

Expand  

yeah, the end pause was for your confirmation but if you prefer without that then try this instead (also fixed the delete confirmation)

@echo off
title Toggle Proxy Auto Config URL

reg query "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v AutoConfigURL

if %errorlevel% == 0 (goto Delete) else (goto Add)

:Add
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v AutoConfigURL /t REG_SZ /d https://wwww.domain.here
exit

:Delete
reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v AutoConfigURL /f
exit

 

  On 26/07/2023 at 13:58, neo2023 said:

Another question: The toggle button (in Windows 11 Proxy Settings) won't change after enabling/disabling with the Reg key. Is this behaviour OK?

Expand  

Not sure on this one, could just be it gets out of sync when you change via registry or could be an additional key is needed to toggle on/off.

Brandon H gave you everything you need. Glad I could help. Cheers!

PS: the UI won't change immediately after modifying the Registry, that's normal. You need to close and reopen the GUI to see the change, that forces Settings to re-read the Registry and adjust itself accordingly. You don't need to worry about that. Many Windows UI components are just that: a front-end for the user to easily change Registry settings without having to use Registry Editor.

@leonsk29Thanks 👍🏻. I realized the change (toggle on/off) isn't real-time. I have to close and re-open the Settings. I hope MS add a specific icon for Script proxy to the network icon. An indicator to show PAC use by the network connection (like the latest Win 11 update). I want to get rid of going there to check the on/off status. Unfortunately, I have to turn it on and off many times in an hour!!! I have to browse some URLs directly (with no VPN/Proxy), and some have to be accessed by VPN/Proxy. Frustrating! 
The reason: My rubbish Internet Provider/Carrier censorship policy (in my region).

My dreams ... 😌 ->  image.png.1eb31e994c9b96d47c49cb2cf9c76d26.png 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • Harmful to them because it affects their business. *Sigh*
    • TCL 75" 4K Smart TV hits lowest price, now less than £500 by Paul Hill Are you in the UK and looking for a massive 75-inch Ultra HD 4K HDR TV at a relatively affordable price? If so, check out this TCL (75P755K) 75-inch TV now because it’s at its lowest price of just £499.00, down 15% from £589.00. The model in question is slightly older, from 2024, but it’s still an excellent home entertainment upgrade given its feature set and aggressive price point. What you get: Features for the price The feature set of this model is definitely pretty impressive. It supports 4K HDR, wide colour gamut, and multiple HDR formats including HDR10+ and Dolby Vision. It also leverages MEMC (Motion Estimation & Motion Compensation), a proprietary algorithm from TCL that helps to reduce motion display blur and keep motion trails to a minimum. While MEMC will do heavy lifting to ensure the best picture, the TV only has a 60Hz refresh rate, but an effective rate of 120Hz thanks to efforts by TCL. This TCL model features Dolby Atmos 2.0 that immerses you more in whatever you’re watching on the TV. In terms of software, this TV comes with Google TV (based on Android) which is well-known and widely supported, ensuring you can use all the apps you depend on. It also supports Google Assistant, Chromecast, and voice control. The Chromecast support allows you to easily stream from your computer or phone to the TV to share what you’re watching to the people around you. The Google Assistant support can also be good if you have smart home devices around the house that can connect to it. The audio features for this TV are also good and mean you don’t need to buy a separate sound bar immediately. User experience and potential considerations According to What Hi-Fi, which reviewed the smaller 65-inch version of this TV, TCL’s TV delivers when it comes to HDR; gaming features such as low input lag, VRR, and Game Bar; wide colour gamut, and the operating system. What it didn’t like about the TV was the limited brightness, which degraded the HDR in bright rooms; the average motion handling; the lack of bass; the lack of local dimming; and the budget-oriented build quality. Making the smart buy decision If you can overlook its limitations, this TV could be a good pick if you need a new TV in the living room on a budget. If you are a serious gamer looking for a high refresh rate, or someone in a very bright room, then you will probably want to look elsewhere. Amazon is also offering free add-on services including wall mounting and unpack. If you do decide to pick up this TCL TV and find a fault with it, you have 30-days from getting the receipt to return it. TCL 75P755K 75-inch 4K TV: £499 (Amazon UK) - MSRP £589 / 15% off This Amazon deal is U.K. specific, and not available in other regions unless specified. If you don't like it or want to look at more options, check out the Amazon UK deals page here. Get Prime, Prime Video, Music Unlimited, Audible or Kindle Unlimited, free for the first 30 days As an Amazon Associate we earn from qualifying purchases.
    • I came here to post something similar, you beat me to it. Why on earth would somebody buy Windows again, even this shady grey-market cheap key, when they already have it and an upgrade from 10 to 11 is free?
    • I maintain that the Cybertruck was a social experiment.  "Can we convince the massively insecure petrol guzzling, Dodge Ram loving, right wing idiots to buy a poorly built, underpowered, underspecified, electric vehicle that they know everyone will laugh at them in"
  • Recent Achievements

    • Week One Done
      theevergreentree earned a badge
      Week One Done
    • Dedicated
      Fryer Tuck earned a badge
      Dedicated
    • Week One Done
      luxoxfurniture earned a badge
      Week One Done
    • First Post
      Uranus_enjoyer earned a badge
      First Post
    • Week One Done
      Uranus_enjoyer earned a badge
      Week One Done
  • Popular Contributors

    1. 1
      +primortal
      439
    2. 2
      +FloatingFatMan
      247
    3. 3
      snowy owl
      226
    4. 4
      ATLien_0
      212
    5. 5
      Xenon
      152
  • Tell a friend

    Love Neowin? Tell a friend!