diff --git a/esxi-scripts/get-snapshots.ps1 b/esxi-scripts/get-snapshots.ps1 index 6aef8cad..b29fa176 100755 --- a/esxi-scripts/get-snapshots.ps1 +++ b/esxi-scripts/get-snapshots.ps1 @@ -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 diff --git a/powerwall.sh b/powerwall.sh index ad324975..bf73cdd5 100755 --- a/powerwall.sh +++ b/powerwall.sh @@ -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 }