IPIPGO ip proxy Setting Up Agents for PowerShell: Windows System Configuration

Setting Up Agents for PowerShell: Windows System Configuration

Teach you to hang a proxy IP to PowerShell Now a lot of network operation partners will use PowerShell, but sometimes directly connected to the network will encounter some trouble. This time to hang a reliable proxy IP is particularly important, today we take our own ipipgo proxy service to cite a chestnut, teach Da...

Setting Up Agents for PowerShell: Windows System Configuration

Hands on with hooking up a proxy IP to PowerShell

Now a lot of network operation partners will use PowerShell, but sometimes directly connected to the network will encounter some trouble. This time to hang a reliable proxy IP is particularly important, today we take our homeipipgoThe proxy service of PowerShell is a chestnut to teach you how to assign a proxy value to PowerShell in Windows.

Why do I need to hook up an agent to PowerShell?

Let's take a real-life scenario: you wrote a script to crawl public data in bulk, and the target website suddenly blocked your IP. At this time, if you hang in advanceipipgoThe dynamic proxy IP, automatically switched to use, there is no fear of being blocked. Then again, for example, some companies have strict intranet restrictions, hanging proxy can help you bypass certain network policies.

Preparation before setup

come firstipipgo official websiteGet a package deal. Suggested choice.HTTP(s) Proxy Package. After successful registration, you can find this key information in the User Center:


Proxy Server: gateway.ipipgo.net
Port number: 30001
Account password: your registered email + independent key

Three Steps to Permanent Proxy Setup

Step one:Open PowerShell as an administrator and enter this command to create a system-level agent:


[System.Environment]::SetEnvironmentVariable('HTTP_PROXY', 'http://用户名:密码@gateway.ipipgo.net:30001', 'Machine')

Step two:


[System.Environment]::SetEnvironmentVariable('HTTPS_PROXY', 'http://用户名:密码@gateway.ipipgo.net:30001', 'Machine')

Step Three:Restart the PowerShell window and run this command to see if it takes effect:


$env:HTTP_PROXY

Temporary Proxy Switching Tips

Sometimes you need to change IP temporarily, you can use this shortcut command:


$webClient = New-Object System.Net.WebClient
$webClient.Proxy.Credentials = [System.Net.CredentialCache]::DefaultNetworkCredentials

Verify that the proxy is in effect

Try accessing it with this commandipipgoof the IP inspection interface:


Invoke-WebRequest -Uri "https://api.ipipgo.com/ip" | Select-Object Content

If the IP address returned is not the same as your local machine, the proxy is in effect.

Guidelines on demining of common problems

Q:Why does it still show the local IP after setting the proxy?
A: Check whether the password contains special symbols, it is recommended to test the proxy availability in the browser first!

Q: How to use multiple proxy IPs at the same time?
A: Recommendedipipgoby adding the "/rotate" parameter after the port number.

Q: What should I do if the agent suddenly fails to connect?
A: First withTest-NetConnection gateway.ipipgo.net -Port 30001Test port connectivity

Why do you recommend ipipgo?

I have been using my own proxy service for most of the year, and I have tested these three advantages to be the most obvious:

  • There are server nodes in 20+ provinces and cities in China
  • Automatic switching of different exit IPs per request
  • Connection optimization specifically for PowerShell

As a final reminder, after setting up the proxy remember to periodically go to theipipgo backstageUpdate the authentication key, especially for friends doing automation scripts, it is recommended to change the password every month to be more secure. If you don't understand anything, you can directly poke the online customer service on their website, and the response speed is quite fast.

This article was originally published or organized by ipipgo.https://www.ipipgo.com/en-us/ipdaili/35827.html

business scenario

Discover more professional services solutions

💡 Click on the button for more details on specialized services

New 10W+ U.S. Dynamic IPs Year-End Sale

Professional foreign proxy ip service provider-IPIPGO

Leave a Reply

Your email address will not be published. Required fields are marked *

Contact Us

Contact Us

13260757327

Online Inquiry. QQ chat

E-mail: hai.liu@xiaoxitech.com

Working hours: Monday to Friday, 9:30-18:30, holidays off
Follow WeChat
Follow us on WeChat

Follow us on WeChat