You need to ensure that VM1 and VM2 can communicate with each other only. The solution must
prevent VM1 and VM2 from communicating with Server1. Which cmdlet should you use?
A.
Set-NetNeighbor
B.
Remove-VMSwitchTeamMember
C.
Set-VMSwitch
D.
Enable-VMSwitchExtension
What you need is a private switch to insure VM1 and VM2 can talk to each other, but not the host. The difference between this and an Internal switch is that VM1 and VM2 can talk to the host and each other. Regardless the command is the same:
Set-VMSwitch (switchname)-SwitchType Private
https://technet.microsoft.com/en-us/itpro/powershell/windows/hyper-v/set-vmswitch