From c8d62d9c4efc1fee494239038b0f154e8bfca4b4 Mon Sep 17 00:00:00 2001 From: Dan Flynn Date: Fri, 29 Aug 2025 11:01:28 -0400 Subject: [PATCH 1/3] Update KACE-Alert.ps1 Updated for 64 Bit and Dell to Quest folder changes --- KACE-Alert.ps1 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/KACE-Alert.ps1 b/KACE-Alert.ps1 index 7dcce14..54e4ecc 100644 --- a/KACE-Alert.ps1 +++ b/KACE-Alert.ps1 @@ -187,13 +187,13 @@ function Get-StringHash([String] $String,$HashName = "MD5") { ################################### # -$AlertMesgDir=$env:ProgramData+"\Dell\KACE\user\" +$AlertMesgDir=$env:ProgramData+"\Quest\KACE\user\" # Alert prefix is standard, set it here for building alert indicator file paths later $AlertIndicatorPrefix=$AlertMesgDir+"KUSERALERT_" # The alert indicator files use a file extension that is a MD5 hash of the "Name" field. $IndicatorExt=Get-StringHash($Name) # Set path to KUserAlert.exe based on OS Architecture, since KACE Agent is only 32-bit, this is pretty easy. -If (Test-Path "$Env:SYSTEMDRIVE\Program Files (x86)" -PathType Container) {$AlertPath = $env:SYSTEMDRIVE+"\Program Files (x86)\Dell\KACE\KUserAlert.exe"} Else {$AlertPath = $env:SYSTEMDRIVE+"\Program Files\Dell\KACE\KUserAlert.exe"} +If (Test-Path "$Env:SYSTEMDRIVE\Program Files" -PathType Container) {$AlertPath = $env:SYSTEMDRIVE+"\Program Files\Quest\KACE\KUserAlert.exe"} Else {$AlertPath = $env:SYSTEMDRIVE+"\Program Files\Quest\KACE\KUserAlert.exe"} # Make sure the KUserAlert.exe file is present as expected. If (-not (Test-Path $AlertPath)) { If ($Silent) { ExitWithCode 2 "KUSERALERT_MISSING" } @@ -418,3 +418,4 @@ Else { } } } + From e79fd088ca5def0c9eaa8a143ad4ae36b30282a9 Mon Sep 17 00:00:00 2001 From: Dan Flynn Date: Fri, 29 Aug 2025 11:06:56 -0400 Subject: [PATCH 2/3] Update KACE-Alert.ps1 cleaned up architecture check is no longer needed --- KACE-Alert.ps1 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/KACE-Alert.ps1 b/KACE-Alert.ps1 index 54e4ecc..5fa4914 100644 --- a/KACE-Alert.ps1 +++ b/KACE-Alert.ps1 @@ -192,8 +192,8 @@ $AlertMesgDir=$env:ProgramData+"\Quest\KACE\user\" $AlertIndicatorPrefix=$AlertMesgDir+"KUSERALERT_" # The alert indicator files use a file extension that is a MD5 hash of the "Name" field. $IndicatorExt=Get-StringHash($Name) -# Set path to KUserAlert.exe based on OS Architecture, since KACE Agent is only 32-bit, this is pretty easy. -If (Test-Path "$Env:SYSTEMDRIVE\Program Files" -PathType Container) {$AlertPath = $env:SYSTEMDRIVE+"\Program Files\Quest\KACE\KUserAlert.exe"} Else {$AlertPath = $env:SYSTEMDRIVE+"\Program Files\Quest\KACE\KUserAlert.exe"} +# Set path to KUserAlert.exe. +$AlertPath = $env:SYSTEMDRIVE+"\Program Files\Quest\KACE\KUserAlert.exe" # Make sure the KUserAlert.exe file is present as expected. If (-not (Test-Path $AlertPath)) { If ($Silent) { ExitWithCode 2 "KUSERALERT_MISSING" } @@ -419,3 +419,4 @@ Else { } } + From 3aa790a37f6e0e67382fef7e86507c461de3cb0b Mon Sep 17 00:00:00 2001 From: Dan Flynn Date: Fri, 29 Aug 2025 12:04:25 -0400 Subject: [PATCH 3/3] Update KACE-Alert.ps1 Corrected comment spelling errors --- KACE-Alert.ps1 | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/KACE-Alert.ps1 b/KACE-Alert.ps1 index 5fa4914..619896f 100644 --- a/KACE-Alert.ps1 +++ b/KACE-Alert.ps1 @@ -3,7 +3,7 @@ Launch, Control, and Track the KACE Alert dialog windows. .DESCRIPTION - You can use KACE-Prompt to launch, udpate, or destroy KACE Agent Alert windows. + You can use KACE-Prompt to launch, update, or destroy KACE Agent Alert windows. .PARAMETER Name Required parameter, unique string that identifies the alert window for updates or termination. This string also appears in the header bar of the alert window. @@ -15,10 +15,10 @@ Main block of text to appear in alert window. .PARAMETER Update - Update the message text in an alert window without changing any other paraemters of the alert. + Update the message text in an alert window without changing any other parameters of the alert. .PARAMETER Append - Update the message text and append to existing text in an alert window without changing any other paraemters of the alert. + Update the message text and append to existing text in an alert window without changing any other parameters of the alert. .PARAMETER Timeout Time (in seconds) to leave an alert on screen before timing out and closing. (Default is 43200, or 12 hours.) @@ -420,3 +420,4 @@ Else { } +