diff --git a/esxi-scripts/cooldown.overnight.ps1 b/esxi-scripts/cooldown.overnight.ps1 index a909cd70..f9598bea 100755 --- a/esxi-scripts/cooldown.overnight.ps1 +++ b/esxi-scripts/cooldown.overnight.ps1 @@ -5,7 +5,7 @@ Connect-VIServer -Server $VCENTERHOST -Protocol https -User $VCENTERUSER -Passwo Get-VM | Where {$_.Name -like '*OMSA*' -or $_.Name -like '*RustDesk Server*' -or $_.Name -like '*MySQL-Manager*'} | Where {$_.PowerState -like '*On*' -and $_.Name -notlike '*Offsite-Backups*'} | Shutdown-VMGuest -Confirm:$false -Disconnect-VIServer -Server $VCENTERHOST -Force –Confirm:$false +# Disconnect-VIServer -Server $VCENTERHOST -Force –Confirm:$false diff --git a/esxi-scripts/cooldown.ps1 b/esxi-scripts/cooldown.ps1 index 9a504437..4fbd6fce 100755 --- a/esxi-scripts/cooldown.ps1 +++ b/esxi-scripts/cooldown.ps1 @@ -5,7 +5,7 @@ Connect-VIServer -Server $VCENTERHOST -Protocol https -User $VCENTERUSER -Passwo Get-VM | Where {$_.Name -like '*MySQL-Node2*' -or $_.Name -like '*Webserver-Node1*' -or $_.Name -like '*LB-Node2*' -or $_.Name -like '*WAN-DNS-Node3*' -or $_.Name -like '*UniFi-Camera-Proxy*' -or $_.Name -like '*Internet Monitor*' -or $_.Name -like '*OMSA*' -or $_.Name -like '*OpenConnect VPN*' -or $_.Name -like '*RustDesk Server*' -or $_.Name -like '*Fileserver*'} | Where {$_.PowerState -like '*On*' -and $_.Name -notlike '*Offsite-Backups*'} | Shutdown-VMGuest -Confirm:$false -Disconnect-VIServer -Server $VCENTERHOST -Force –Confirm:$false +# Disconnect-VIServer -Server $VCENTERHOST -Force –Confirm:$false diff --git a/esxi-scripts/coolup.overnight.ps1 b/esxi-scripts/coolup.overnight.ps1 index 161fdcbf..23ffc7a5 100755 --- a/esxi-scripts/coolup.overnight.ps1 +++ b/esxi-scripts/coolup.overnight.ps1 @@ -5,7 +5,7 @@ Connect-VIServer -Server $VCENTERHOST -Protocol https -User $VCENTERUSER -Passwo Get-VM | Where {$_.Name -like '*OMSA*' -or $_.Name -like '*RustDesk Server*' -or $_.Name -like '*MySQL-Manager*'} | Where {$_.PowerState -notlike '*On*' -and $_.Name -notlike '*Offsite-Backups*'} | Start-VM -Confirm:$false -Disconnect-VIServer -Server $VCENTERHOST -Force –Confirm:$false +# Disconnect-VIServer -Server $VCENTERHOST -Force –Confirm:$false diff --git a/esxi-scripts/disable-system-vms.ps1 b/esxi-scripts/disable-system-vms.ps1 index ada67a6d..da36888f 100755 --- a/esxi-scripts/disable-system-vms.ps1 +++ b/esxi-scripts/disable-system-vms.ps1 @@ -8,4 +8,4 @@ Connect-VIServer -Server $VCENTERHOST -Protocol https -User $VCENTERUSER -Passwo Set-DrsRule -Rule 'System VMs (S)' -Enabled $false; -Disconnect-VIServer -Server $VCENTERHOST -Force –Confirm:$false \ No newline at end of file +# Disconnect-VIServer -Server $VCENTERHOST -Force –Confirm:$false \ No newline at end of file diff --git a/esxi-scripts/get-snapshots.ps1 b/esxi-scripts/get-snapshots.ps1 index 2ea3bb60..75880e9e 100755 --- a/esxi-scripts/get-snapshots.ps1 +++ b/esxi-scripts/get-snapshots.ps1 @@ -14,4 +14,4 @@ Write-Progress -Activity "Done" -Completed $snapshots | Format-List -Disconnect-VIServer -Server $VCENTERHOST -Force –Confirm:$false +# Disconnect-VIServer -Server $VCENTERHOST -Force –Confirm:$false diff --git a/esxi-scripts/host-maintenance_mode.ps1 b/esxi-scripts/host-maintenance_mode.ps1 index 6b9638ad..64146170 100755 --- a/esxi-scripts/host-maintenance_mode.ps1 +++ b/esxi-scripts/host-maintenance_mode.ps1 @@ -6,4 +6,4 @@ Connect-VIServer -Server $VCENTERHOST -Protocol https -User $VCENTERUSER -Passwo Get-VMHost -Name $args[0] | set-vmhost -State Maintenance -Evacuate -Disconnect-VIServer -Server $VCENTERHOST -Force –Confirm:$false \ No newline at end of file +# Disconnect-VIServer -Server $VCENTERHOST -Force –Confirm:$false \ No newline at end of file diff --git a/esxi-scripts/iscsi-all-shutdown-verify.ps1 b/esxi-scripts/iscsi-all-shutdown-verify.ps1 index 0e7106dc..77ad6c92 100755 --- a/esxi-scripts/iscsi-all-shutdown-verify.ps1 +++ b/esxi-scripts/iscsi-all-shutdown-verify.ps1 @@ -25,4 +25,4 @@ Do { } Until ($poff -match 'yes') -Disconnect-VIServer -Server $VCENTERHOST -Force –Confirm:$false +# Disconnect-VIServer -Server $VCENTERHOST -Force –Confirm:$false diff --git a/esxi-scripts/iscsi-all-vm-shutdown.ps1 b/esxi-scripts/iscsi-all-vm-shutdown.ps1 index e56a6098..19f77d40 100755 --- a/esxi-scripts/iscsi-all-vm-shutdown.ps1 +++ b/esxi-scripts/iscsi-all-vm-shutdown.ps1 @@ -5,4 +5,4 @@ Connect-VIServer -Server $VCENTERHOST -Protocol https -User $VCENTERUSER -Passwo Get-Datastore | Where {$_.Name -like '*iSCSI-*' -and $_.Name -notlike '*vMS*'} | Get-VM | Where {$_.PowerState -like '*On*' -and $_.Name -notlike '*CLS*' -and $_.Name -notlike '*iSCSI-*'} | Shutdown-VMGuest -Confirm:$false -Disconnect-VIServer -Server $VCENTERHOST -Force –Confirm:$false +# Disconnect-VIServer -Server $VCENTERHOST -Force –Confirm:$false diff --git a/esxi-scripts/iscsi-sys-vm-shutdown-verify.ps1 b/esxi-scripts/iscsi-sys-vm-shutdown-verify.ps1 index baf97c4d..9d7a1394 100755 --- a/esxi-scripts/iscsi-sys-vm-shutdown-verify.ps1 +++ b/esxi-scripts/iscsi-sys-vm-shutdown-verify.ps1 @@ -23,4 +23,4 @@ Do { } Until ($poff -match 'yes') -Disconnect-VIServer -Server $VCENTERHOST -Force –Confirm:$false +# Disconnect-VIServer -Server $VCENTERHOST -Force –Confirm:$false diff --git a/esxi-scripts/iscsi-sys-vm-shutdown.ps1 b/esxi-scripts/iscsi-sys-vm-shutdown.ps1 index 02b74784..98acd44a 100755 --- a/esxi-scripts/iscsi-sys-vm-shutdown.ps1 +++ b/esxi-scripts/iscsi-sys-vm-shutdown.ps1 @@ -5,4 +5,4 @@ Connect-VIServer -Server $VCENTERHOST -Protocol https -User $VCENTERUSER -Passwo Get-Datastore | Where {$_.Name -like '*iSCSI-SYS*'} | Get-VM | Where {$_.PowerState -like '*On*' -and $_.Name -notlike '*CLS*'} | Shutdown-VMGuest -Confirm:$false -Disconnect-VIServer -Server $VCENTERHOST -Force –Confirm:$false +# Disconnect-VIServer -Server $VCENTERHOST -Force –Confirm:$false diff --git a/esxi-scripts/iscsi-vm-shutdown-verify.ps1 b/esxi-scripts/iscsi-vm-shutdown-verify.ps1 index 961cdd9a..2eb3d2d9 100755 --- a/esxi-scripts/iscsi-vm-shutdown-verify.ps1 +++ b/esxi-scripts/iscsi-vm-shutdown-verify.ps1 @@ -23,4 +23,4 @@ Do { } Until ($poff -match 'yes') -Disconnect-VIServer -Server $VCENTERHOST -Force –Confirm:$false +# Disconnect-VIServer -Server $VCENTERHOST -Force –Confirm:$false diff --git a/esxi-scripts/iscsi-vm-shutdown.ps1 b/esxi-scripts/iscsi-vm-shutdown.ps1 index 53d409fa..97095ceb 100755 --- a/esxi-scripts/iscsi-vm-shutdown.ps1 +++ b/esxi-scripts/iscsi-vm-shutdown.ps1 @@ -5,4 +5,4 @@ Connect-VIServer -Server $VCENTERHOST -Protocol https -User $VCENTERUSER -Passwo Get-Datastore | Where {$_.Name -like '*iSCSI-PRI*'} | Get-VM | Where {$_.PowerState -like '*On*' -and $_.Name -notlike '*CLS*'} | Shutdown-VMGuest -Confirm:$false -Disconnect-VIServer -Server $VCENTERHOST -Force –Confirm:$false +# Disconnect-VIServer -Server $VCENTERHOST -Force –Confirm:$false diff --git a/esxi-scripts/vm-shutdown.ps1 b/esxi-scripts/vm-shutdown.ps1 index 0af35066..51f22499 100755 --- a/esxi-scripts/vm-shutdown.ps1 +++ b/esxi-scripts/vm-shutdown.ps1 @@ -16,5 +16,5 @@ Foreach ($vmhost in $vmhosts) } } -Disconnect-VIServer -Server $VCENTERHOST -Force –Confirm:$false +# Disconnect-VIServer -Server $VCENTERHOST -Force –Confirm:$false