VMware Cloud Community
Shahnawaz26
Enthusiast
Enthusiast
Jump to solution

Export dvSwitch PowerCLI

We have multiple dvSwicthes.

Following command creates a single backup file for all of them.

************

$vds = get-vdswitch

get-vdswitch | export-vdswitch  -Destination ("C:\Backup\"+  "_" + $vds + ".zip") -Force

***********

What is the Command to create multiple files for each dvswitch.

1 Solution

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

`Something like this?

Get-VDSwitch | %{

    Export-VDSwitch -VDSwitch $_ -Destination ("C:\Backup\$($_.Name).zip") -Force

}


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

View solution in original post

1 Reply
LucD
Leadership
Leadership
Jump to solution

`Something like this?

Get-VDSwitch | %{

    Export-VDSwitch -VDSwitch $_ -Destination ("C:\Backup\$($_.Name).zip") -Force

}


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