Private/Write-CheckIDPasswordAgentEventLog.ps1
|
function Write-CheckIDPasswordAgentEventLog { [CmdletBinding()] Param( [Parameter(Mandatory = $true)] [string]$Message, [Parameter(Mandatory = $true)] [int]$EventId, [Parameter(Mandatory = $true)] [System.Diagnostics.EventLogEntryType]$EntryType ) Process { try { [System.Diagnostics.EventLog]::WriteEntry("Application", $Message, $EntryType, $EventId) } catch { Write-Verbose "Failed to write CheckIDPasswordAgent event log entry: $_" } } } |