PoshCode Archive  Artifact [e21b5c11f2]

Artifact e21b5c11f20df8ad1889e57aebd408bc1e21b78bb4215d5184c366d8c7acb9ff:

  • File Blow-up-ESXi.ps1 — part of check-in [20d651cbf9] at 2018-06-10 12:58:27 on branch trunk — Blow up your ESXi host. For entertainment purposes only. (user: unknown size: 461)

# encoding: ascii
# api: powershell
# title: Blow up ESXi
# description: Blow up your ESXi host. For entertainment purposes only.
# version: 0.1
# license: CC0
# x-poshcode-id: 1554
# x-archived: 2009-12-26T18:55:06
#
#
foreach ($i in 10..1) {
	Set-VMHostAdvancedConfiguration -name Annotations.WelcomeMessage -value "This host will self destruct in $i"
}
Start-Sleep 10
Set-VMHostAdvancedConfiguration -name Annotations.WelcomeMessage -value ""