I have a HyperV switch. When I run hnsdiag list networks, the following is returned:
03D8864D-7F72-412C-AC60-CC3056A1AE11
Name: staticip
Type: Internal
Subnet Address: 172.31.224.0/20
Gateway: 172.31.224.1
How can I change the Subnet Address and Gateway?
I found "Install-Module -Name HNS" so I have the "Get-Hns" and "Remove-Hns" functions. I was expecting "Set-Hns" functions.
I tried to connect network adapters to the virtual switch with IP addresses in the range that I expected (not the addresses returned by hnsdiag).
I looked in the registry. I found the virtual switch and its subnet and gateway in binary data. I was expecting to find a string registry value to modify.