Download ExchSetupLog-Assistant:
:
Warning! This function has 3 global variables that might overwrite variables with the same name: ExchSetupIndex, FocusedExchLog, and ExchSetupLog
The ExchangeSetupLog-Assistant is intended to help you review ExchangeSetup.log to establish a timeline of the log, what was some of the statuses, and if there were errors, what were they?
The default behavior of the function will search the local directory for "ExchangeSetup.log", index the log, then review the logs for failures on the last 3 attempts.
Once the attempts are found, it will be in a variable, $ExchSetupLog, which you can review in the shell session accordingly.
For now, you MUST 'dot source' the script to import the function ExchSetupLog-Assistant, navigate to where the .ps1 was downloaded and run:
. .\ExchSetupLog-Assistant.ps1
This cmdlet with run the assistant in the default behavior.
ExchSetupLog-Assistant
This cmdlet with run the assistant in the default behavior, then show you the results right away in the shell
ExchSetupLog-Assistant -LiveReview $true
This cmdlet will run the assistant against the ENTIRE log and export the timeline to the local path, otherwise, default behavior:
ExchSetupLog-Assistant -EntireLog $true -ExportLogToLog $true
This cmdlet will run the assistant against the specified log, review the entire log, return more than the standard 12 errors, and export the timeline to a custom path:
ExchSetupLog-Assistant -log "C:\ExchangeSetupLogs\ExchangeSetup.log" -EntireLog $true -ErrorCount 30 -ExportLogToLog $true -ExportPath "C:\Temp"
#Review entire log in scrolling fashion:
$ExchSetupLog | More
#stage string for format of attempt 22 only
$SearchString = “__22__”
#Then perform where object to find the desired
$ExchSetupLog | ? {$_ -like “*”+$SearchString+”*”}
