Skip to content

A simple Powershell module for viewing SCCM logs

License

Notifications You must be signed in to change notification settings

phlcrny/CCMLogs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CCMLogs

PowerShell Gallery

CCMLogs is intended as a simple module to make it easier to interact with Configuration Manager logs in Powershell.

Getting Started

Installing

Install-Module -Name "CCMLogs"

Usage

Get-CCMLog -LogName "AppDiscovery"
# Retrieves the AppDiscovery log of the local machine

Get-CCMLog -LogName "AppEnforce" -Count 10
# Retrieves 10 entries from the AppEnforce log of the local machine

Get-CCMLog -LogName "AppIntentEval", "AppDiscovery", "AppEnforce" | Out-GridView
# Retrieves the 'AppIntentEval', 'AppDiscovery' and 'AppEnforce' log entries and outputs to Out-GridView for interactive search, sorting etc.

Get-CCMLog -LogName "AppIntentEval", "AppDiscovery", "AppEnforce" -After (Get-Date).AddDays(-1)
# Retrieves the 'AppIntentEval', 'AppDiscovery' and 'AppEnforce' log entries for the last 24 hours