From acfaaf7ba5e1abd32757949aff347bbb8d27493f Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 21 Oct 2023 20:35:38 -0500 Subject: [PATCH] Update get-snapshots.ps1 --- esxi-scripts/get-snapshots.ps1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/esxi-scripts/get-snapshots.ps1 b/esxi-scripts/get-snapshots.ps1 index 1448d5fb..19f93c32 100755 --- a/esxi-scripts/get-snapshots.ps1 +++ b/esxi-scripts/get-snapshots.ps1 @@ -3,6 +3,7 @@ . /opt/idssys/powerwall/settings.ps1 Connect-VIServer -Server $args[0] -Protocol https -User $ESXiUsername -Password $ESXiPassword | Out-Null +# Connect-VIServer -Server 10.2.1.11 -Protocol https -User $ESXiUsername -Password $ESXiPassword | Out-Null -get-vm | get-snapshot | where {($_.vm -notlike '_replica')} | select vm, name, description, created, sizegb +get-vm | get-snapshot | where {($_.vm -notlike '*_replica')} | select vm, name, description, created, sizegb