Update samy.ps1

This commit is contained in:
2025-12-21 00:59:22 -05:00
committed by syelle
parent 7c00dd801b
commit 820575d36d

View File

@@ -346,7 +346,7 @@ $ConfirmPreference = 'None'
# - Level-based Event IDs and console colors
# - Global in-memory log cache
# - One-time Event Log/source initialization with optional auto-elevation
function Write-LogHelper {
function global:Write-LogHelper {
<#
.SYNOPSIS
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"
# EventLog = "SVSMSP Events"
# ─────────────────────────────────────────────────────────────────────────
function Write-LogHybrid {
function global:Write-LogHybrid {
[CmdletBinding()]
param(
[Parameter(Mandatory = $true)]