diff --git a/esxi-scripts/get-snapshots.ps1 b/esxi-scripts/get-snapshots.ps1 index 21afca20..1448d5fb 100755 --- a/esxi-scripts/get-snapshots.ps1 +++ b/esxi-scripts/get-snapshots.ps1 @@ -4,5 +4,5 @@ Connect-VIServer -Server $args[0] -Protocol https -User $ESXiUsername -Password $ESXiPassword | Out-Null -get-vm | get-snapshot | where {($_.name -notlike '_replica')} | select vm, name, description, created, sizegb +get-vm | get-snapshot | where {($_.vm -notlike '_replica')} | select vm, name, description, created, sizegb