This commit is contained in:
2024-01-26 17:07:23 -06:00
parent 3c6630bf67
commit bca02fcb84
2 changed files with 3 additions and 3 deletions

View File

@@ -5,12 +5,12 @@ Write-Progress -Activity "Connecting to vCenter..." -PercentComplete 20
. /opt/idssys/powerwall/settings.ps1
Connect-VIServer -Server $VCENTERHOST -Protocol https -User $VCENTERUSER -Password $VCENTERPASS | Out-Null
Write-Progress -Activity "Gathering Snapshots..." -PercentComplete 80
Write-Progress -Activity "Connected! Gathering Snapshots..." -PercentComplete 80
$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-Progress -Completed
Write-Progress -Activity "Done" -Completed
$snapshots | Format-List

View File

@@ -722,7 +722,7 @@ GET_SNAPSHOTS(){
# echo -en "\033[2K\e[0K\r"
# echo -e "${snapshots}"
${PW_FOLDER}/esxi-scripts/get-snapshots.ps1
echo -e "\n"
echo
}