pull/339/head^2
Romain 2023-04-25 00:56:36 +02:00 committed by GitHub
parent 15ff97a43e
commit 4f2a51bf61
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -71,14 +71,14 @@ elseif ($NotifApproved){
$NotifApproved = "wau:system" $NotifApproved = "wau:system"
} }
} }
if ($NotifApproved -eq "wau:userDialogBox"){ if ($NotifApproved -eq "wau:userDialogBox"){
Add-Type -AssemblyName PresentationCore,PresentationFramework Add-Type -AssemblyName PresentationCore,PresentationFramework
$Result = [System.Windows.MessageBox]::Show($MessageBody,$Title,4,32) $Result = [System.Windows.MessageBox]::Show($MessageBody,$Title,4,32)
if ($Result -eq "Yes") { if ($Result -eq "Yes") {
$NotifApproved = "wau:user" $NotifApproved = "wau:user"
} }
} }
if ($NotifApproved -eq "wau:system"){ if ($NotifApproved -eq "wau:system"){
#Create tag if user approve notif for requested updates #Create tag if user approve notif for requested updates
$WAUNotifApprovedPath = "$WorkingDir\config\NotifApproved.txt" $WAUNotifApprovedPath = "$WorkingDir\config\NotifApproved.txt"
New-Item $WAUNotifApprovedPath -Force New-Item $WAUNotifApprovedPath -Force