What is difference between these three proxies?

Bombbe 1,441 Reputation points
2020-12-16T14:34:44.987+00:00

Hi,
what is difference between these two proxies setup when both are done in Powershell? Have seen both is use and action but really could not found the difference (if there are even).

Netsh winhttp set proxy <url:port>

and

 [Environment]::SetEnvironmentVariable("https_proxy","http://{proxy-url}:{proxy-port}","Machine")
    $env:https_proxy = [System.Environment]::GetEnvironmentVariable("https_proxy","Machine")

or in cmd

set http_proxy=protocol://ip:port
Windows for business | Windows Client for IT Pros | Networking | Network connectivity and file sharing
Windows for business | Windows Server | User experience | Other
{count} votes

1 answer

Sort by: Most helpful
  1. Anonymous
    2020-12-17T06:34:34.653+00:00

    Hi,

    Thanks for posting in Q&A platform.

    Based on my knowledge, all these commands are using to configure proxy and there is no difference between these commands.

    Attaching the following articles for your reference.

    Configure device proxy and Internet connectivity settings

    https://learn.microsoft.com/en-us/azure/azure-arc/servers/onboard-portal

    https://campus.barracuda.com/product/nextgenfirewallf/doc/53248619/how-to-set-up-and-configure-the-http-proxy/
    Please Note: Since the websites are not hosted by Microsoft, the links may change without notice. Microsoft does not guarantee the accuracy of this information.

    Best Regards,
    Sunny

    ----------

    If the Answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.