Real-Time monitoring of OM Techical Preview installation for errors

Some days ago we announced the availability of Windows Server Technical Preview and System Center Technical Preview.

After downloading the vhd file using a PowerShell script shared on Niklas Akerlund’s blog I wanted to monitor the installation of OpsMgr in real-time for errors.

As you may already know there is OpsMgrSetupWizard.log file which reports activity and progress of setup wizard.

Wouldn’t it be cool if we could monitor this file in real-time for errors? This can easily be done using PowerShell and the Get-Content Cmdlet.

 get-content -Path c:\users\<UserName>\Appdata\Local\SCOM\Logs\OpsMgrSetupWizard.log -tail 2 -wait | select-string -Pattern "error"

Change the <UserName> to the user which is being used for the installation.

Here is an example using the Get-Content and Select-String cmdlet to monitor for error message real-time.

tail

Have fun installing the preview.