Update SVSTaskGate.ps1

This commit is contained in:
2025-01-04 02:03:06 -05:00
parent ec68c0ac93
commit ade504a85d

View File

@@ -10,7 +10,7 @@ if (-not $Global:LogCache -or -not ($Global:LogCache -is [System.Collections.Arr
$Global:LogCache = New-Object System.Collections.ArrayList $Global:LogCache = New-Object System.Collections.ArrayList
} }
#region Write-Log
# Check if the Write-Log function exists # Check if the Write-Log function exists
if (-not (Get-Command -Name Write-Log -CommandType Function -ErrorAction SilentlyContinue)) { if (-not (Get-Command -Name Write-Log -CommandType Function -ErrorAction SilentlyContinue)) {
# If the Write-Log function doesn't exist, create the Write-LogHelper function # If the Write-Log function doesn't exist, create the Write-LogHelper function
@@ -127,6 +127,7 @@ else {
# Example usage of Write-LogHybrid # Example usage of Write-LogHybrid
Write-LogHybrid -Message "This is a test log message. Write-logHybrid" -Level "Info" -TaskCategory "TestCategory" -LogToEvent:$true Write-LogHybrid -Message "This is a test log message. Write-logHybrid" -Level "Info" -TaskCategory "TestCategory" -LogToEvent:$true
Write-Log -Message "This is a test log message. Write-log" -Level "Info" -TaskCategory "TestCategory" -LogToEvent:$true Write-Log -Message "This is a test log message. Write-log" -Level "Info" -TaskCategory "TestCategory" -LogToEvent:$true
#endregion
function Install-SVSMSP { function Install-SVSMSP {
@@ -354,7 +355,7 @@ function Get-N8nWebhookData {
} }
} }
#region HTML & CSS
# Define the HTML Content with an Off-Boarding Tab # Define the HTML Content with an Off-Boarding Tab
function GetHtmlContent { function GetHtmlContent {
@" @"
@@ -817,7 +818,7 @@ function GetHtmlContent {
</html> </html>
"@ "@
} }
#endregion
# Save and launch the HTML # Save and launch the HTML