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

Setting Up Agents for PowerShell: Windows System Configuration

手把手教你给PowerShell挂上代理IP 现在很多搞网络操作的小伙伴都会用PowerShell,但有时候网络会遇到些麻烦。这时候挂个靠谱的代理IP就特别重要了,今天就拿咱们自家ipipgo的代理服务来举个栗子,教大家怎…

Setting Up Agents for PowerShell: Windows System Configuration

Hands on with hooking up a proxy IP to PowerShell

现在很多搞网络操作的小伙伴都会用PowerShell,但有时候网络会遇到些麻烦。这时候挂个靠谱的代理IP就特别重要了,今天就拿咱们自家ipipgoThe 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.

我们的产品仅支持在境外网络环境下使用(除TikTok专线外),用户使用IPIPGO从事的任何行为均不代表IPIPGO的意志和观点,IPIPGO不承担任何法律责任。

business scenario

Discover more professional services solutions

💡 Click on the button for more details on specialized services

IPIPGO-五一狂欢 IP资源全场特价!

Professional foreign proxy ip service provider-IPIPGO

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