Skip to content

Follow a log with PowerShell

Sometimes you want to follow along a long when something is starting or when something is happening to see it in real time.

There are a lot of tools to use and the are good at what they do, but there isn’t always the possibility to install such a tool for various reasons.

Luckily when using PowerShell you can follow along any log file quite easy and the command is there by default.

Use the following line and just point out the log file you wish to follow along with.

Get-Content -Path "C:\LogFiles\test.txt" -Wait

Easy and useful when in need for a quick tool to just get realtime output from a log file.