Functions/PoShMon.Configuration/OperatingSystem.ps1
Function OperatingSystem { [CmdletBinding()] param( [string[]]$EventLogCodes = 'Critical', [hashtable]$EventIDIgnoreList = @{}, [string[]]$SpecialWindowsServices = $null ) if ($Script:PoShMon.ConfigurationItems.OperatingSystem -eq $null) { $Script:PoShMon.ConfigurationItems.OperatingSystem = @{} } else { throw "OperatingSystem configuration group already created." } return @{ TypeName = "PoShMon.ConfigurationItems.OperatingSystem" EventLogCodes = $EventLogCodes EventIDIgnoreList = $EventIDIgnoreList SpecialWindowsServices = $SpecialWindowsServices } } |