Reply to Message

View discussion in a popup

Replying to:
LucD
Leadership
Leadership

This is the Get-Log based one

Get-VMHost -PipelineVariable esx |
ForEach-Object -Process {
    Get-Log -Key vmkernel -VMHost $esx |
    Select @{N='VMHost';E={$_.Host.Name}},
        @{N='LastLine';E={$_.Entries[$_.LastLineNum - 1]}}
}


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

View solution in original post

Reply
0 Kudos