Posted in
Virtual Machine Manager,
Windows Powershell |
No Comment | 18,458 views | 27/01/2014 16:59
This simple script gives you list of VMs with snapshot/checkpoint on SCVMM 2012.
1
2
3
4
5
6
7
8
| $VMs = Get-VM
foreach ($VM in $VMs)
{
if ($VM.VMCheckpoints)
{
Write-Host $VM.Name
}
} |
$VMs = Get-VM
foreach ($VM in $VMs)
{
if ($VM.VMCheckpoints)
{
Write-Host $VM.Name
}
}
It will only output of virtual machine names.