VMware Cloud Community
Sergey_eXPert
Contributor
Contributor
Jump to solution

New Folder for vDS

Hi guys,

     I know about New-Folder cmdlet, but can't figure out how to create a folder in Networking section for new virtual sitributed switch

     Did someone done this already?

Best regards, Sergey

Tags (3)
0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

Try like this

They are in a hidden folder called 'network', and there is one of these per datacenter

$dcName = 'MyDC'

$location = Get-Folder -Name network -Location (Get-Datacenter -Name $dcName)

New-Folder -Name Test -Location $location


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

View solution in original post

0 Kudos
1 Reply
LucD
Leadership
Leadership
Jump to solution

Try like this

They are in a hidden folder called 'network', and there is one of these per datacenter

$dcName = 'MyDC'

$location = Get-Folder -Name network -Location (Get-Datacenter -Name $dcName)

New-Folder -Name Test -Location $location


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos