This commit is contained in:
2023-03-28 21:24:49 -05:00
parent 283a947f5a
commit b743dbea2c
2 changed files with 14 additions and 0 deletions

7
sys-iscsi-shutdown.ps1 Normal file
View File

@@ -0,0 +1,7 @@
#!/usr/bin/env pwsh
. /opt/idssys/powerwall/settings.ps1
Connect-VIServer -Server $args[0] -Protocol https -User $ESXiUsername -Password $ESXiPassword
Get-Datastore | Where {$_.Name -like '*iSCSI*'} | Get-VM | Where {$_.PowerState -like '*On*' -and $_.Name -notlike '*CLS*'}