Contains functions to simplify logging inside PowerShell cmdlets.

Minimum PowerShell version


Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Module -Name BAMCIS.Logging

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

Install-PSResource -Name BAMCIS.Logging

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More



(c) 2017 BAMCIS. All rights reserved.

Package Details


  • Michael Haken


Logging CMTrace


Write-Log Write-CMTraceLog Get-CallerPreference


This module has no dependencies.

Release Notes

Updated the Write-Log cmdlet to inherit the preferences from the caller scope so Verbose and Debug messages will be written.

Updated the Write-Log cmdlet so that errors writing to the log file will show as verbose messages.

Initial Release. This module has been separated from the HostUtilities module to provide a lighter weight module that is more reusable across other modules.


Version History

Version Downloads Last updated (current version) 9,014 10/26/2017 587 10/26/2017 594 10/26/2017