The Win32_RDVHManagement WMI class, located in root\cimv2\TerminalServices, has a method called RdvSetupVMPermissions. Does anybody know what this method does? Which permissions does it set and how exacly?
I found this method through the Open-RDVMFirewall function (part of the RemoteDesktop PowerShell module). All what the function does is a call to RdvSetupVMPermissions. Given the function's name, I suppose that the WMI method can also somehow configure Windows Firewall?
If yes, then it should be possible to configure VM firewall from the hypervisor side even w/o having an RDVH role installed and I am very much interested in it.
Unfortunately, the official documentation is useless.