Update get-snapshots.ps1

This commit is contained in:
2023-10-21 23:26:04 -05:00
parent 1b5e976789
commit b985fbc1a3

View File

@@ -6,5 +6,5 @@ Connect-VIServer -Server $args[0] -Protocol https -User $ESXiUsername -Password
# 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 | ConvertTo-Json -Depth 3
get-vm | get-snapshot | where {($_.vm -notlike '*_replica')} | select vm, name, description, created, sizegb | ConvertTo-Json