update
This commit is contained in:
1 parent
217906e639
commit
3b35808e1a
2 files changed
+10
-6
No files matched your search
@@ -4,10 +4,13 @@
|
||||
|
||||
Connect-VIServer -Server $VCENTERHOST -Protocol https -User $VCENTERUSER -Password $VCENTERPASS | 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 1 -WarningAction:SilentlyContinue
|
||||
|
||||
write-host "\033[2K\e[0K\r" -NoNewline
|
||||
write-host "Gathering Snapshots ..."
|
||||
|
||||
$snapshots = 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 1 -WarningAction:SilentlyContinue
|
||||
|
||||
write-host "\033[2K\e[0K\r" -NoNewline
|
||||
write-host $snapshots
|
||||
|
||||
Disconnect-VIServer -Server $VCENTERHOST -Force –Confirm:$false
|
||||
Reference in new issue
Block a user