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.
`Something like this?
Get-VDSwitch | %{
Export-VDSwitch -VDSwitch $_ -Destination ("C:\Backup\$($_.Name).zip") -Force
}
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
`Something like this?
Get-VDSwitch | %{
Export-VDSwitch -VDSwitch $_ -Destination ("C:\Backup\$($_.Name).zip") -Force
}
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference