Tip: When you don't have Tail

Further extension - change the Window Title to the name of the file we are tailing:

powershell -executionpolicy bypass "$FileName= get-childitem -path 'c:\Program Files (x86)\BigFix Enterprise\BES Client\__BESData\__Global\Logs' | sort LastWriteTime | select -last 1; $host.UI.RawUI.WindowTitle = $FileName.FullName; $FileName | get-content -last 50 -wait"

Challenge: Anyone more versed in PowerShell care to extend this to read the log path from the Registry instead of assuming C:\Program Files (x86) ?

3 Likes