Which of the following represents the PowerShell cmdlet (with basic syntax) that would be used to create a private network switch called HalifaxLAN and connect it to a VMs adapter named NSNet1?

New-VMSwitch "HalifaxLAN" -NetAdapterName "NSNet1" -SwitchType Private

Creating a private virtual switch in Hyper‑V is done with the New-VMSwitch cmdlet, providing a name and choosing the Private switch type. The Private option isolates traffic so the VMs connected to this switch can talk to each other on the same host but cannot reach the host’s physical network or other networks. By specifying the VM’s adapter name with -NetAdapterName, you’re indicating which VM adapter to connect to that switch, here named NSNet1. So the command that names the switch HalifaxLAN, assigns the VM adapter NSNet1, and marks the switch as Private properly fulfills both the naming and isolation requirements and links the switch to the specified VM adapter. The other options would create a switch tied to a physical network (External) or use a different cmdlet, which do not meet the private/isolation requirement.

New-VMSwitch -Name HalifaxLAN -NetAdapterName NSNet1 -SwitchType External

New-VMSwitch "HalifaxLAN" -NetAdapterName "NSNet1" -SwitchType External

Add-VMSwitch HalifaxLAN -Adapter NSNet1 -Type Private

Want more questions?

All options are one-time payments.

$12.99

30 day pass for new members

All the basics to get you started

  • Ad-free experience
  • View your previous attempt history
  • Mobile app access
  • In-depth explanations
  • 30 day premium pass access
$29.99$92.93 usd

6 month DELUXE pass (most popular)

Full access FOR 6 MONTHS! & the ultimate digital PDF study guide (BONUS)

  • $92.93 usd value for $29.99! You save $62.94!
  • Ad-free experience
  • View your previous attempt history
  • Mobile app access
  • In-depth explanations
  • 6 months of full access
  • Ultimate digital PDF study guide included
  • Priority support
$14.99 $19.99

Ultimate digital PDF study guide

For those that prefer a more traditional form of learning

  • Available for instant download
  • Available offline
  • Hundreds of practice multiple choice questions
  • Comprehensive content
  • Detailed explanations
Image Description
Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy