Sometimes, some programs in a Hyper-V virtual machine need to access some network resources outside firewalls. Therefore, a proxy is required. However, by no means should we set the proxy in the virtual machine, taking into consideration the fact that setting up proxy in the virtual machine is a waste of time and resources. Instead, we can set the proxy in the host machine, and then share the proxy to the virtual machine.
Before we start, we need to make sure that the proxy program is available for private network.
Get network interfaces with
Set the interface category to private with
Set-NetConnectionProfile -InterfaceIndex <InterfaceIndex> -NetworkCategory Private