Proxy Community
How to Unset Proxy in PowerShell: What's the Best Way to Remove Proxy Settings? - Printable Version

+- Proxy Community (https://proxycommunity.com/forum)
+-- Forum: Technical Community Support (https://proxycommunity.com/forum/forum-technical-community-support)
+--- Forum: Troubleshooting (https://proxycommunity.com/forum/forum-troubleshooting)
+--- Thread: How to Unset Proxy in PowerShell: What's the Best Way to Remove Proxy Settings? (/thread-how-to-unset-proxy-in-powershell-what-s-the-best-way-to-remove-proxy-settings)

Pages: 1 2


How to Unset Proxy in PowerShell: What's the Best Way to Remove Proxy Settings? - HyperLegend99 - 12-10-2024

Hey everyone,
I’ve been messing around with proxy settings in PowerShell and kinda got stuck. I set up a proxy earlier, but now I need to remove it. I’ve been searching for *how to unset proxy in PowerShell*, but the stuff I found is either too complicated or doesn’t work for me.

Anyone know the easiest way to do this? Like, is there a quick command or do I gotta dig into the registry? I’m not super advanced with PowerShell, so something simple would be awesome.

Also, does unsetting the proxy mess with anything else? Just wanna make sure I don’t break something lol.

Thanks in advance!


“” - vpnDartX99 - 26-01-2025

Hey! So, I had the same issue a while back. To unset proxy in PowerShell, you can use this command:
```powershell
netsh winhttp reset proxy
```
It’s super simple and resets the proxy settings to default.

As for whether it messes with anything else, nah, it shouldn’t. It just removes the proxy config, so your system will stop using it. If you’re worried, you can always check your internet settings afterward to make sure everything’s working fine.

Hope this helps!


“” - deepSprintX - 23-02-2025

Yo, I feel you on the proxy struggle. If you’re looking for how to unset proxy in PowerShell, try this:
```powershell
[System.Net.WebRequest]:Big GrinefaultWebProxy = $null
```
This clears the proxy for the current session. If you want it gone permanently, you might need to tweak the registry, but this should work for most cases.

Also, check out this site for more PowerShell tips: [ss64.com](https://ss64.com/ps/). It’s got a ton of useful commands.


“” - webDrifterX - 28-02-2025

Hey there! Unsetting a proxy in PowerShell isn’t too bad. Here’s a quick way:
```powershell
Set-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings' -Name ProxyEnable -Value 0
```
This disables the proxy in the registry. It’s a bit more advanced, but it works like a charm.

And no, it shouldn’t mess with anything else. Just double-check your internet settings afterward to be safe.


“” - deepDash99 - 04-03-2025

If you’re stuck on how to unset proxy in PowerShell, this command should do the trick:
```powershell
netsh winhttp show proxy
```
This shows your current proxy settings, and then you can reset it with:
```powershell
netsh winhttp reset proxy
```
It’s pretty straightforward and doesn’t require messing with the registry.

Also, if you’re new to PowerShell, I’d recommend checking out [PowerShell.org](https://powershell.org/). They’ve got great resources for beginners.


“” - proxyDashX77 - 12-03-2025

Hey! I had this exact problem last week. To unset proxy in PowerShell, you can use:
```powershell
Remove-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings' -Name ProxyServer
```
This removes the proxy server setting from the registry.

And no, it won’t mess with anything else. Just make sure you’re not using any apps that rely on that specific proxy.


“” - cloakXpert99 - 13-03-2025

If you’re looking for how to unset proxy in PowerShell, here’s a quick fix:
```powershell
Set-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings' -Name ProxyEnable -Value 0
```
This disables the proxy.

Also, if you’re worried about breaking stuff, you can always create a system restore point before making changes. Better safe than sorry, right?


“” - HyperLegend99 - 13-03-2025

Thanks, everyone! I tried the `netsh winhttp reset proxy` command, and it worked like a charm. Super easy and didn’t mess with anything else.

I also checked out the links you guys shared, especially ss64.com—super helpful for a newbie like me.

One quick follow-up: if I ever need to set up a proxy again, is there a similar simple command, or is it more complicated? Just curious for future reference.

Thanks again! You guys are awesome.


“” - fastTor99 - 13-03-2025

Hey! I’ve been there too. To unset proxy in PowerShell, try this:
```powershell
[System.Net.WebRequest]:Big GrinefaultWebProxy = [System.Net.WebRequest]::GetSystemWebProxy()
```
This resets the proxy to the system default.

If you’re still having trouble, check out [Stack Overflow](https://stackoverflow.com/questions/tagged/powershell). There’s a ton of threads on this topic.