Quantcast
Channel: VMware Communities : All Content - VMware PowerCLI
Viewing all articles
Browse latest Browse all 16717

Backup vDS

$
0
0

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


Viewing all articles
Browse latest Browse all 16717

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>