diff --git a/esxi-scripts/cooldown.overnight.ps1 b/esxi-scripts/cooldown.overnight.ps1 index f9598bea..a909cd70 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 4fbd6fce..9a504437 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 23ffc7a5..161fdcbf 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 da36888f..ada67a6d 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 75880e9e..2ea3bb60 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 64146170..6b9638ad 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 77ad6c92..0e7106dc 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 19f77d40..e56a6098 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 9d7a1394..baf97c4d 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 98acd44a..02b74784 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 2eb3d2d9..961cdd9a 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 97095ceb..53d409fa 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/set-drs.ps1 b/esxi-scripts/set-drs.ps1 index 3821761f..4410d839 100755 --- a/esxi-scripts/set-drs.ps1 +++ b/esxi-scripts/set-drs.ps1 @@ -25,4 +25,4 @@ Get-Cluster -Name "iDS-Cluster" | Get-DrsRecommendation -Refresh | Invoke-DrsRec Write-Progress -Activity "Done" -Completed -# 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/vm-shutdown.ps1 b/esxi-scripts/vm-shutdown.ps1 index 51f22499..0af35066 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