Hey all,
I am working on making a script to simply backup my vDSs. I have it doing one, but I would like to have it do all my switches and create an individual backup in a folder. I am missing some kind of each command or something as I am getting a char limit issue. I see that I am an idiot, but not sure how to fix it.
$date=Get-Date -format "yyyy-MMM-d"
$datetime=Get-Date
$vDSName= Get-VDSwitch
Get-VDSwitch -Name $vDSName | Export-VDSwitch -Description "$vDSName Backup $date" -Destination "c:\scripts\$vDSName Backup $date" -Force
Thank you for any help,
Andy