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

Create and Revert Snapshot

$
0
0

Hi

 

 

Could someone please give  a professional touch to this script so that I could Revert snapshot with results and then take a snapshot again

I would really appreciate your response.

Thanks

 

 

 

 

 

 

if ( !(Get-Module -Name VMware.VimAutomation.Core -ErrorAction SilentlyContinue) ) {

 

 

"C:\Program Files (x86)\VMware\Infrastructure\vSphere PowerCLI\Scripts\Initialize-PowerCLIEnvironment.ps1"

 

 

}

 

 

$srv= connect-CIServer -Server vcloud.link-connect.com -user xx -Password xxx -Org xxx

 

 

$vm = Get-CIvm "xxxx"-

 

 

$vm.ExtensionData.RemoveAllSnapshots() ???? Need Revert Script please !!

 

 

 

 

 

$vm.ExtensionData.CreateSnapshot($null,$null,"$null","$null")


Viewing all articles
Browse latest Browse all 182126

Trending Articles



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