Skip to content

Latest commit

 

History

History
63 lines (35 loc) · 1.22 KB

Get-LTError.md

File metadata and controls

63 lines (35 loc) · 1.22 KB
schema
2.0.0

Get-LTError

SYNOPSIS

This will pull the %ltsvcdir%\LTErrors.txt file into an object.

SYNTAX

DESCRIPTION

EXAMPLES

EXAMPLE 1

PS C:\>Get-LTError | where {(Get-date $_.Time) -gt (get-date).AddHours(-24)}

Get a list of all errors in the last 24hr

EXAMPLE 2

PS C:\>Get-LTError | Out-Gridview

Open the log file in a sortable searchable window.

PARAMETERS

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

NOTES

Version: 1.2

Author: Chris Taylor

Website: labtechconsulting.com

Creation Date: 3/14/2016

Purpose/Change: Initial script development

Update Date: 6/1/2017

Purpose/Change: Updates for better overall compatibility, including better support for PowerShell V2

Update Date: 3/18/2018

Purpose/Change: Changed Erroraction from Stop to unspecified to allow caller to set the ErrorAction.

RELATED LINKS