What is difference between these three proxies?

Bombbe 1,626 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 Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
13,068 questions
Windows Network
Windows Network
Windows: A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.Network: A group of devices that communicate either wirelessly or via a physical connection.
756 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Sunny Qi 11,036 Reputation points Microsoft Vendor
    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.