VMware Cloud Community
Sany_1973
Enthusiast
Enthusiast

Add a vSwitch to Host Profile without reference host

Hi

Can we have a powercli script to add additional vSwitch to Host Profile.

Thanks,

Stanly.

Tags (2)
0 Kudos
2 Replies
DevaDx
Enthusiast
Enthusiast

Dear Stanly

Creates a new virtual switch.

Syntax

New-VirtualSwitch [-VMHost] <VMHost> [-Name] <String> [[-NumPorts] <Int32>] [[-Nic] <PhysicalNic[]>] [[-Mtu] <Int32>] [-Server <VIServer[]>] [-WhatIf] [-Confirm] [<CommonParameters>]

Please find the below link for your reference.

New-VirtualSwitch - vSphere PowerCLI Cmdlets Reference

Thanks & Regards

Devaraj Sankar

0 Kudos
Sany_1973
Enthusiast
Enthusiast

Hi Devaraj,

Thank you for the reply. I am looking for adding a vSwitch entry to Host profile not to the Host directly.

Creating a subprofile like thing.

0 Kudos