From 5a034c9bc698e2d85c4dca77cf4b6e91b7e82b24 Mon Sep 17 00:00:00 2001 From: DeveloperDurp <Np4ZTRSfwfMUgs@protonmail.com> Date: Tue, 17 May 2022 13:37:21 -0500 Subject: [PATCH] add security updates to invoke-button --- winutil-test.ps1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/winutil-test.ps1 b/winutil-test.ps1 index e2cb2f4d..663235f1 100644 --- a/winutil-test.ps1 +++ b/winutil-test.ps1 @@ -335,6 +335,7 @@ $xaml.SelectNodes("//*[@Name]") | ForEach-Object {$global:sync["$("$($_.Name)")" "Paneluser" {cmd /c "control userpasswords2"} "Updatesdefault" {Invoke-Runspace $Updatesdefault} "Updatesdisable" {Invoke-Runspace $Updatesdisable} + "Updatessecurity" {Invoke-Runspace $Updatessecurity} } } @@ -1559,7 +1560,7 @@ $xaml.SelectNodes("//*[@Name]") | ForEach-Object {$global:sync["$("$($_.Name)")" } $global:sync.Form.Dispatcher.Invoke([action]{$global:sync.Updatessecurity.Content = "Running"},"Normal") - [System.Windows.MessageBox]::Show("Updates Disable",'I am going to install the disable Updates',"OK","Info") + [System.Windows.MessageBox]::Show("Updates Security",'I am going to install the Security Updates',"OK","Info") <#TODO Make sure this runs in a runspace and elevates to an admin prompt Write-Host "Disabling driver offering through Windows Update..."