Comments (6)
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.
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.
Not sure what you talking about ?
from posh.
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.
It looks like it works for me the same as before (here in pwsh7):
from posh.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from posh.