VMware 6.5
I want to revert to "BaseSnapshot" for all the GuestVM servers on a certain host with Powershell.
In other words i want to get rid of all the Changes for all the GuestVM and go back to BaseSnapshot (snapshot 1)
Anyone?
Really appreciate our answer
Perhaps something like this:
Connect-VIServer -Server <vCenter Server>
Get-VMHost -Name <Host> | Get-VM | % {Get-Snapshot -Name 'BaseSnapshot' | Set-Snapshot}
Looks promising in theory.
Do you belive your example code is working if I´m having 30 servers that I´ll revert to BaseSnapshot?
Or should i modify the code with some "plural" syntax?
But anyway If you belive this is gonna work, I´m gonna ty this code in a lab with 3 servers. Than we´ll see if this is working
I´ll be back.
You could always try to add -WhatIf to the command line.