JakeBentz icon

remove_coredumps

JakeBentz | PRO | 08/22/17 04:15:25 PM UTC | 0 ⭐ | 212 👁️ | Never ⏰ | []
PowerShell |

660 B

|

None

|

0 👍

/

0 👎

# /=======================================================================
# /=
# /=  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)
}

Comments

  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎