Update samy.ps1
This commit is contained in:
4
samy.ps1
4
samy.ps1
@@ -346,7 +346,7 @@ $ConfirmPreference = 'None'
|
|||||||
# - Level-based Event IDs and console colors
|
# - Level-based Event IDs and console colors
|
||||||
# - Global in-memory log cache
|
# - Global in-memory log cache
|
||||||
# - One-time Event Log/source initialization with optional auto-elevation
|
# - One-time Event Log/source initialization with optional auto-elevation
|
||||||
function Write-LogHelper {
|
function global:Write-LogHelper {
|
||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
Standardized logging utility with console/file output and Windows Event Log support,
|
Standardized logging utility with console/file output and Windows Event Log support,
|
||||||
@@ -542,7 +542,7 @@ if (-not [System.Diagnostics.EventLog]::SourceExists('$EventSource')) {
|
|||||||
# EventSource = "SVSMSP_Module"
|
# EventSource = "SVSMSP_Module"
|
||||||
# EventLog = "SVSMSP Events"
|
# EventLog = "SVSMSP Events"
|
||||||
# ─────────────────────────────────────────────────────────────────────────
|
# ─────────────────────────────────────────────────────────────────────────
|
||||||
function Write-LogHybrid {
|
function global:Write-LogHybrid {
|
||||||
[CmdletBinding()]
|
[CmdletBinding()]
|
||||||
param(
|
param(
|
||||||
[Parameter(Mandatory = $true)]
|
[Parameter(Mandatory = $true)]
|
||||||
|
|||||||
Reference in New Issue
Block a user