Hyper-V default switch to private profile

sx flag

The organization I work for has a group policy that doesn't allow me to add firewall rules on the public profile. As a result, it drops DHCP requests from VMs as the Hyper-V default network seems to be on the public profile. If I put a static IP I can work just fine, but this is inconvenient as the IP on the Hyper-V network changes on reboot (and I cannot use multipass).

I tried to move the default network to private where the DHCPs are allowed in the firewall but it doesn't even show up in the Get Net-ConnectionProfile.

PS C:\WINDOWS\system32> Get-NetConnectionProfile

Name             : MyWiFi
InterfaceAlias   : Wi-Fi
InterfaceIndex   : 18
NetworkCategory  : Private
IPv4Connectivity : Internet
IPv6Connectivity : NoTraffic
Is there another way to make the required change?

I'm using Windows 10 21H1 (19043.1466)


Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.