Fixed the Notification errors
This commit is contained in:
@@ -93,17 +93,7 @@ try {
|
||||
|
||||
# --- Notify user that the replay was saved ---
|
||||
$notifyScript = Join-Path $PSScriptRoot 'Show-Notification.ps1'
|
||||
Start-Process -FilePath 'powershell.exe' -ArgumentList @(
|
||||
'-STA'
|
||||
'-ExecutionPolicy', 'Bypass'
|
||||
'-NonInteractive'
|
||||
'-WindowStyle', 'Hidden'
|
||||
'-File', $notifyScript
|
||||
'-Type', 'ReplaySaved'
|
||||
'-ContactNumber', $config.ITContactNumber
|
||||
'-FileName', $savedFile.Name
|
||||
'-FileSizeMB', $fileSizeMB
|
||||
) -WindowStyle Hidden
|
||||
Start-Process -FilePath 'powershell.exe' -ArgumentList "-STA -ExecutionPolicy Bypass -NonInteractive -WindowStyle Hidden -File `"$notifyScript`" -Type ReplaySaved -ContactNumber `"$($config.ITContactNumber)`" -FileName `"$($savedFile.Name)`" -FileSizeMB $fileSizeMB" -WindowStyle Hidden
|
||||
Write-Host "$(Get-Date -Format 'yyyy-MM-dd HH:mm:ss') [INFO] User notification launched."
|
||||
|
||||
return $true
|
||||
|
||||
Reference in New Issue
Block a user