Update iscsi-vm-shutdown-verify.ps1
This commit is contained in:
@@ -3,6 +3,8 @@
|
|||||||
Set-PowerCLIConfiguration -InvalidCertificateAction Ignore -Confirm:$false
|
Set-PowerCLIConfiguration -InvalidCertificateAction Ignore -Confirm:$false
|
||||||
. /opt/idssys/powerwall/settings.ps1
|
. /opt/idssys/powerwall/settings.ps1
|
||||||
|
|
||||||
|
$ESXI = Connect-VIServer -Server $args[0] -Protocol https -User $ESXiUsername -Password $ESXiPassword | Out-Null
|
||||||
|
|
||||||
$VMLIST = Get-Datastore | Where {$_.Name -like '*iSCSI-PRI*'} | Get-VM
|
$VMLIST = Get-Datastore | Where {$_.Name -like '*iSCSI-PRI*'} | Get-VM
|
||||||
|
|
||||||
Foreach ($VM in $VMLIST) {
|
Foreach ($VM in $VMLIST) {
|
||||||
|
|||||||
Reference in New Issue
Block a user