Coder Social home page Coder Social logo

Comments (6)

jay-99 avatar jay-99 commented on June 11, 2024 1

ok, thanks for checking. I thought it was the new windows version but there must be some other policy on our system affecting this. I will keep looking for the cause, will update you if I find anything of significance..

from posh.

jay-99 avatar jay-99 commented on June 11, 2024 1

Issue was actually not related to the internet set & refresh function which I ruled out after seeing it work properly in your video. It was actually cause by the below highlighted line (in my code, not yours). The offending line was actually stopping all registry changes being written on previous lines (which is why I thought it was the function). For whatever reason, this worked in v1909 but stopped working in v2004. Rather than trying to force remove the registry entry, I now perform a test to see if it exists and change the value to either 1 or 0. I don't why why this behavior only affects this line and not the other lines that do the same thing, but can confirm now working. Thanks for taking the time to reply.

$RegPath = "HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings"
#Change Proxy in current users registry
Remove-ItemProperty -path $RegPath -Name AutoConfigURL -ErrorAction SilentlyContinue
Remove-ItemProperty -path $RegPath -Name ProxyServer -ErrorAction SilentlyContinue
Remove-ItemProperty -path $RegPath -Name ProxyOverride -ErrorAction SilentlyContinue
Remove-ItemProperty -path $RegPath -Name ProxyEnable -ErrorAction SilentlyContinue

from posh.

majkinetor avatar majkinetor commented on June 11, 2024

Not sure what you talking about ?

from posh.

jay-99 avatar jay-99 commented on June 11, 2024

Apologies. This relates to Update-Proxy.ps1. The script doesn't work in Windows 10 2004 and after some testing I believe it's to do with the 'refresh function' in the script no longer working.

from posh.

majkinetor avatar majkinetor commented on June 11, 2024

It looks like it works for me the same as before (here in pwsh7):

proxy

from posh.

majkinetor avatar majkinetor commented on June 11, 2024

I also checked relevant MS docs about INTERNET_OPTION_REFRESH and InternetSetOption there isn't anything related to latest Windows version.

from posh.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.