I have turned a physical machine running Windows 10 21H1 into a virtual machine that I run under Hyper-V on a new machine running Windows 10 21H2.
Networking-wise, the VM is configured with two network adapters connected to one virtual switch each: one that is linked to the wifi adapter on the host machine, and the second one is just an internal network.
Whenever I reboot the host machine, upon the next restart of the VM, it always thinks it is connected to a new network and pops up the "do you want your pc to be discoverable" prompt on the sidebar.
How can I configure it so that it recognize the network as the same one it has already been connected to? Is this something controlled by a setting in the virtual switch configuration, in the network adapter settings in hyper-v, or something in the VM itself?