With Hyper-V I created a virtual switch to allow my VMs to access to shared folders from the host.
As the virtual switch is a "Unidentified network" on Windows 10. The category of this network is set as public. So if I want to access to my file from the VM I have to "Turn on file and printer sharing" of Guest and Public Network in the Advanced sharing settings.
I do not like this solution because isn't secure as I use to connect to free Wifi...
I found a solution to set change the Category of my Network by using PowerShell ran as administrator.
Set-NetConnectionProfile -interfacealias "vEthernet (Host-Only)" -NetworkCategory Private
The problem is that the modification disappear after any restart. How can I make this Set-NetConnectionProfile
permanent ?