Multi snap

Simple script for creation Multisnap

 

Creation:

$servers = get-content servers.txt

foreach($server in $servers)

{

New-Snapshot -VM $server -Name “Test Snap” -Description “Test Snap”

}

 

Deletion:

$servers = get-content servers.txt

foreach($server in $servers)

{

Get-VM $server | Get-Snapshot -Name “Test Snap” | Remove-Snapshot -confirm:$false

}

 

 

Please  Subscribe

 

 

 152 total views,  1 views today