Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # /=======================================================================
- # /=
- # /= remove_coredumps.ps1
- # /=
- # /= AUTHOR: Jake Bentz
- # /= DATE: 08/22/2017
- # /=
- # /= REQUIREMENTS: N/A
- # /=
- # /= DESCRIPTION: This script removes coredump files from all connected hosts
- # /=
- # /= REVISION HISTORY
- # /= VER DATE AUTHOR/EDITOR COMMENT
- # /= 1.0 08/15/2017 Jake Bentz Created script
- # /=
- # /=======================================================================#
- #
- Get-VMHost | % {
- write-host "Connecting to" $_
- $esxcli = get-esxcli -vmhost $_
- write-host "removing coredump from" $_
- $esxcli.system.coredump.file.remove($null, $true)
- }