This commit is contained in:
2024-01-26 16:33:11 -06:00
parent 3249c1177d
commit 99ef0ab83f
3 changed files with 8 additions and 68 deletions

View File

@@ -1,17 +1,5 @@
#!/usr/bin/env pwsh
# Set-PowerCLIConfiguration -InvalidCertificateAction Ignore -Confirm:$false | Out-Null
# . /opt/idssys/powerwall/settings.ps1
#
# Connect-VIServer -Server $args[0] -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 1 -WarningAction:SilentlyContinue
#
# Disconnect-VIServer -Server $args[0] -Force Confirm:$false
. /opt/idssys/powerwall/settings.ps1
Connect-VIServer -Server $VCENTERHOST -Protocol https -User $VCENTERUSER -Password $VCENTERPASS | Out-Null
@@ -19,4 +7,4 @@ Connect-VIServer -Server $VCENTERHOST -Protocol https -User $VCENTERUSER -Passwo
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
Disconnect-VIServer -Server $VCENTERHOST -Force Confirm:$false
Disconnect-VIServer -Server $VCENTERHOST -Force Confirm:$false