update
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user