update
This commit is contained in:
@@ -4,6 +4,6 @@
|
||||
|
||||
Connect-VIServer -Server $args[0] -Protocol https -User $ESXiUsername -Password $ESXiPassword | Out-Null
|
||||
|
||||
Get-VM | Where {$_.Name -like '*iSCSI*'} | Shutdown-VMGuest -Confirm:$false
|
||||
Get-VM | Where {$_.Name -like '*iSCSI-Server*'} | Shutdown-VMGuest -Confirm:$false
|
||||
|
||||
exit 0
|
||||
|
||||
9
esxi-scripts/iscsi-sys-server-shutdown.ps1
Executable file
9
esxi-scripts/iscsi-sys-server-shutdown.ps1
Executable file
@@ -0,0 +1,9 @@
|
||||
#!/usr/bin/env pwsh
|
||||
|
||||
. /opt/idssys/powerwall/settings.ps1
|
||||
|
||||
Connect-VIServer -Server $args[0] -Protocol https -User $ESXiUsername -Password $ESXiPassword | Out-Null
|
||||
|
||||
Get-VM | Where {$_.Name -like '*iSCSI-Systems*'} | Shutdown-VMGuest -Confirm:$false
|
||||
|
||||
exit 0
|
||||
Reference in New Issue
Block a user