Tag: Logging

Building Logs for CMTrace with PowerShell

In a previous life, I managed Microsoft's System Center Configuration Manager (SCCM) product. I was a SCCM ninja. One of the coolest things I got out of that was learning about the CMTrace log utility. �Part of the System Center Configuration Manager Toolkit, CMTrace is a log viewing utility that allows you to watch logs, in real time, as well as point out various potential problems through yellow and red highlighting, a sortable timestamp column and more.

Adam Bertram Avatar Adam Bertram

5 min. read

How to Build a Logging Function in PowerShell

Keeping tabs on what a script is doing is critical for monitoring and debugging. Monitoring a script can be done in many different ways, but it is usually dependent on how it's being executed. If a script is invoked interactively, meaning directly from the console using techniques such as Write-Verbose, Write-Information or Write-Host, it is useful because each command can display messages on the console as the script runs.

Adam Bertram Avatar Adam Bertram

2 min. read

Subscribe to Adam the Automator

Get the latest posts delivered right to your inbox