From 9ae366b9638f4718639fc240c829c3c113c24298 Mon Sep 17 00:00:00 2001 From: Gabi <218829269+GabiNun2@users.noreply.github.com> Date: Thu, 18 Jun 2026 12:30:16 +0300 Subject: [PATCH 01/28] Update Invoke-WPFUpdatesdisable.ps1 --- functions/public/Invoke-WPFUpdatesdisable.ps1 | 50 +++---------------- 1 file changed, 8 insertions(+), 42 deletions(-) diff --git a/functions/public/Invoke-WPFUpdatesdisable.ps1 b/functions/public/Invoke-WPFUpdatesdisable.ps1 index ce81aa2681..782b9c5cba 100644 --- a/functions/public/Invoke-WPFUpdatesdisable.ps1 +++ b/functions/public/Invoke-WPFUpdatesdisable.ps1 @@ -1,54 +1,20 @@ function Invoke-WPFUpdatesdisable { - <# - - .SYNOPSIS - Disables Windows Update - - .NOTES - Disabling Windows Update is not recommended. This is only for advanced users who know what they are doing. - - #> - $ErrorActionPreference = 'SilentlyContinue' - - Write-Host "Configuring registry settings..." -ForegroundColor Yellow - New-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" -Force - - Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" -Name "NoAutoUpdate" -Type DWord -Value 1 - Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" -Name "AUOptions" -Type DWord -Value 1 - - New-Item -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\DeliveryOptimization\Config" -Force - Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\DeliveryOptimization\Config" -Name "DODownloadMode" -Type DWord -Value 0 - - Write-Host "Hiding Windows Updates from settings" Set-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer -Name SettingsPageVisibility -Value hide:windowsupdate + Write-Host "Windows Update will not be hidden from settings" - Write-Host "Disabled BITS Service" - Set-Service -Name BITS -StartupType Disabled + takeown /f $Env:SystemRoot\System32\usosvc.dll | Out-Null + icacls $Env:SystemRoot\System32\usosvc.dll /grant Everyone:F | Out-Null + Rename-Item -Path $Env:SystemRoot\System32\usosvc.dll -NewName usosvc.dlle - Write-Host "Disabled wuauserv Service" - Set-Service -Name wuauserv -StartupType Disabled + takeown /f $Env:SystemRoot\System32\wuaueng.dll | Out-Null + icacls $Env:SystemRoot\System32\wuaueng.dll /grant Everyone:F | Out-Null + Rename-Item -Path $Env:SystemRoot\System32\wuaueng.dll -NewName wuaueng.dlle - Write-Host "Disabled UsoSvc Service" - Stop-Service -Name UsoSvc -Force - Set-Service -Name UsoSvc -StartupType Disabled + Write-Host "Windows Update dlls renamed." Remove-Item "C:\Windows\SoftwareDistribution\*" -Recurse -Force Write-Host "Cleared SoftwareDistribution folder" - Write-Host "Disabling update related scheduled tasks..." -ForegroundColor Yellow - - $Tasks = - '\Microsoft\Windows\InstallService\*', - '\Microsoft\Windows\UpdateOrchestrator\*', - '\Microsoft\Windows\UpdateAssistant\*', - '\Microsoft\Windows\WaaSMedic\*', - '\Microsoft\Windows\WindowsUpdate\*', - '\Microsoft\WindowsUpdate\*' - - foreach ($Task in $Tasks) { - Get-ScheduledTask -TaskPath $Task | Disable-ScheduledTask -ErrorAction SilentlyContinue - } - Write-Host "=================================" -ForegroundColor Green Write-Host "--- Updates Are Disabled ---" -ForegroundColor Green Write-Host "=================================" -ForegroundColor Green From 996eebaea2b7f3c582e82949c520afc78414da98 Mon Sep 17 00:00:00 2001 From: Gabi <218829269+GabiNun2@users.noreply.github.com> Date: Thu, 18 Jun 2026 12:31:09 +0300 Subject: [PATCH 02/28] Update Invoke-WPFUpdatesdisable.ps1 --- functions/public/Invoke-WPFUpdatesdisable.ps1 | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/functions/public/Invoke-WPFUpdatesdisable.ps1 b/functions/public/Invoke-WPFUpdatesdisable.ps1 index 782b9c5cba..63824693fd 100644 --- a/functions/public/Invoke-WPFUpdatesdisable.ps1 +++ b/functions/public/Invoke-WPFUpdatesdisable.ps1 @@ -1,6 +1,4 @@ function Invoke-WPFUpdatesdisable { - Set-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer -Name SettingsPageVisibility -Value hide:windowsupdate - Write-Host "Windows Update will not be hidden from settings" takeown /f $Env:SystemRoot\System32\usosvc.dll | Out-Null icacls $Env:SystemRoot\System32\usosvc.dll /grant Everyone:F | Out-Null @@ -10,10 +8,7 @@ function Invoke-WPFUpdatesdisable { icacls $Env:SystemRoot\System32\wuaueng.dll /grant Everyone:F | Out-Null Rename-Item -Path $Env:SystemRoot\System32\wuaueng.dll -NewName wuaueng.dlle - Write-Host "Windows Update dlls renamed." - - Remove-Item "C:\Windows\SoftwareDistribution\*" -Recurse -Force - Write-Host "Cleared SoftwareDistribution folder" + Remove-Item -Path $Env:SystemRootSoftwareDistribution\* -Recurse -Force Write-Host "=================================" -ForegroundColor Green Write-Host "--- Updates Are Disabled ---" -ForegroundColor Green From c6cbc62b95e7f88be6e1fafe809de5e1b88d852c Mon Sep 17 00:00:00 2001 From: Gabi <218829269+GabiNun2@users.noreply.github.com> Date: Thu, 18 Jun 2026 12:32:07 +0300 Subject: [PATCH 03/28] Update Invoke-WPFUpdatesdefault.ps1 --- functions/public/Invoke-WPFUpdatesdefault.ps1 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/functions/public/Invoke-WPFUpdatesdefault.ps1 b/functions/public/Invoke-WPFUpdatesdefault.ps1 index ad71ec243f..577d9478f8 100644 --- a/functions/public/Invoke-WPFUpdatesdefault.ps1 +++ b/functions/public/Invoke-WPFUpdatesdefault.ps1 @@ -16,11 +16,11 @@ function Invoke-WPFUpdatesdefault { Remove-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\DriverSearching" -Recurse -Force Remove-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" -Recurse -Force - Write-Host "Showing Windows Updates in settings" - Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer -Name SettingsPageVisibility - Write-Host "Reenabling Windows Update Services..." -ForegroundColor Green + Rename-Item -Path $Env:SystemRoot\System32\usosvc.dlle -NewName usosvc.dll + Rename-Item -Path $Env:SystemRoot\System32\wuaueng.dlle -NewName wuaueng.dll + Write-Host "Restored BITS to Manual" Set-Service -Name BITS -StartupType Manual From c6f186f7c5bdb16c6148a2ff59e9b7d28cdb9134 Mon Sep 17 00:00:00 2001 From: Gabi <218829269+GabiNun2@users.noreply.github.com> Date: Thu, 18 Jun 2026 12:36:03 +0300 Subject: [PATCH 04/28] Update Invoke-WPFUpdatesdisable.ps1 --- functions/public/Invoke-WPFUpdatesdisable.ps1 | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/functions/public/Invoke-WPFUpdatesdisable.ps1 b/functions/public/Invoke-WPFUpdatesdisable.ps1 index 63824693fd..d7f7899a0f 100644 --- a/functions/public/Invoke-WPFUpdatesdisable.ps1 +++ b/functions/public/Invoke-WPFUpdatesdisable.ps1 @@ -1,12 +1,9 @@ function Invoke-WPFUpdatesdisable { + takeown /f $Env:SystemRoot\System32\usosvc.dll + icacls $Env:SystemRoot\System32\usosvc.dll /deny Everyone:F - takeown /f $Env:SystemRoot\System32\usosvc.dll | Out-Null - icacls $Env:SystemRoot\System32\usosvc.dll /grant Everyone:F | Out-Null - Rename-Item -Path $Env:SystemRoot\System32\usosvc.dll -NewName usosvc.dlle - - takeown /f $Env:SystemRoot\System32\wuaueng.dll | Out-Null - icacls $Env:SystemRoot\System32\wuaueng.dll /grant Everyone:F | Out-Null - Rename-Item -Path $Env:SystemRoot\System32\wuaueng.dll -NewName wuaueng.dlle + takeown /f $Env:SystemRoot\System32\wuaueng.dll + icacls $Env:SystemRoot\System32\wuaueng.dll /deny Everyone:F Remove-Item -Path $Env:SystemRootSoftwareDistribution\* -Recurse -Force From 29d1dd792c8f05c6624dee48732b0340cd41f6c6 Mon Sep 17 00:00:00 2001 From: Gabi <218829269+GabiNun2@users.noreply.github.com> Date: Thu, 18 Jun 2026 12:36:26 +0300 Subject: [PATCH 05/28] Update Invoke-WPFUpdatesdefault.ps1 --- functions/public/Invoke-WPFUpdatesdefault.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/functions/public/Invoke-WPFUpdatesdefault.ps1 b/functions/public/Invoke-WPFUpdatesdefault.ps1 index 577d9478f8..bfde5f31ac 100644 --- a/functions/public/Invoke-WPFUpdatesdefault.ps1 +++ b/functions/public/Invoke-WPFUpdatesdefault.ps1 @@ -18,8 +18,8 @@ function Invoke-WPFUpdatesdefault { Write-Host "Reenabling Windows Update Services..." -ForegroundColor Green - Rename-Item -Path $Env:SystemRoot\System32\usosvc.dlle -NewName usosvc.dll - Rename-Item -Path $Env:SystemRoot\System32\wuaueng.dlle -NewName wuaueng.dll + icacls $Env:SystemRoot\System32\usosvc.dll /grant Everyone:F + icacls $Env:SystemRoot\System32\wuaueng.dll /grant Everyone:F Write-Host "Restored BITS to Manual" Set-Service -Name BITS -StartupType Manual From 89281cbfe65066fb866665736ff438bd29b2cd33 Mon Sep 17 00:00:00 2001 From: Gabi <218829269+GabiNun2@users.noreply.github.com> Date: Thu, 18 Jun 2026 12:41:15 +0300 Subject: [PATCH 06/28] Update Invoke-WPFUpdatesdisable.ps1 --- functions/public/Invoke-WPFUpdatesdisable.ps1 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/functions/public/Invoke-WPFUpdatesdisable.ps1 b/functions/public/Invoke-WPFUpdatesdisable.ps1 index d7f7899a0f..03e2ca32fc 100644 --- a/functions/public/Invoke-WPFUpdatesdisable.ps1 +++ b/functions/public/Invoke-WPFUpdatesdisable.ps1 @@ -1,4 +1,6 @@ function Invoke-WPFUpdatesdisable { + Write-Host "Note: This will prevent you from using the Microsoft Store." -ForegroundColor Yellow + takeown /f $Env:SystemRoot\System32\usosvc.dll icacls $Env:SystemRoot\System32\usosvc.dll /deny Everyone:F From f9869171fd115bd051150f913e471799371b8868 Mon Sep 17 00:00:00 2001 From: Gabi <218829269+GabiNun2@users.noreply.github.com> Date: Mon, 22 Jun 2026 11:21:28 -0700 Subject: [PATCH 07/28] Update Invoke-WPFUpdatesdisable.ps1 --- functions/public/Invoke-WPFUpdatesdisable.ps1 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/functions/public/Invoke-WPFUpdatesdisable.ps1 b/functions/public/Invoke-WPFUpdatesdisable.ps1 index 03e2ca32fc..b93914384c 100644 --- a/functions/public/Invoke-WPFUpdatesdisable.ps1 +++ b/functions/public/Invoke-WPFUpdatesdisable.ps1 @@ -1,12 +1,15 @@ function Invoke-WPFUpdatesdisable { Write-Host "Note: This will prevent you from using the Microsoft Store." -ForegroundColor Yellow + Write-Host "Blocking execution of windows update dlls" + takeown /f $Env:SystemRoot\System32\usosvc.dll icacls $Env:SystemRoot\System32\usosvc.dll /deny Everyone:F takeown /f $Env:SystemRoot\System32\wuaueng.dll icacls $Env:SystemRoot\System32\wuaueng.dll /deny Everyone:F + Write-Host "Clearing SoftwareDistribution folder" Remove-Item -Path $Env:SystemRootSoftwareDistribution\* -Recurse -Force Write-Host "=================================" -ForegroundColor Green From 9c9393234e383ec0997d52dbdeaf989b45ce838e Mon Sep 17 00:00:00 2001 From: Gabi <218829269+GabiNun2@users.noreply.github.com> Date: Tue, 30 Jun 2026 08:02:19 +0300 Subject: [PATCH 08/28] Update Invoke-WPFUpdatesdisable.ps1 --- functions/public/Invoke-WPFUpdatesdisable.ps1 | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/functions/public/Invoke-WPFUpdatesdisable.ps1 b/functions/public/Invoke-WPFUpdatesdisable.ps1 index e4afe451bd..fdf4a28594 100644 --- a/functions/public/Invoke-WPFUpdatesdisable.ps1 +++ b/functions/public/Invoke-WPFUpdatesdisable.ps1 @@ -9,13 +9,15 @@ function Invoke-WPFUpdatesdisable { Write-Host "Blocking execution of windows update dlls" takeown /f $Env:SystemRoot\System32\usosvc.dll - icacls $Env:SystemRoot\System32\usosvc.dll /deny Everyone:F + icacls $Env:SystemRoot\System32\usosvc.dll /grant Everyone:F + Rename-Item -Path $Env:SystemRoot\System32\usosvc.dll -NewName usosvc.dlle takeown /f $Env:SystemRoot\System32\wuaueng.dll - icacls $Env:SystemRoot\System32\wuaueng.dll /deny Everyone:F + icacls $Env:SystemRoot\System32\wuaueng.dll /grant Everyone:F + Rename-Item -Path $Env:SystemRoot\System32\wuaueng.dll -NewName wuaueng.dlle Write-Host "Clearing SoftwareDistribution folder" - Remove-Item -Path $Env:SystemRootSoftwareDistribution\* -Recurse -Force + Remove-Item -Path $Env:SystemRoot\SoftwareDistribution\* -Recurse -Force Write-Host "=================================" -ForegroundColor Green Write-Host "--- Updates Are Disabled ---" -ForegroundColor Green From 0d2052df956e9fa68edc3e570f998b009269ced8 Mon Sep 17 00:00:00 2001 From: Gabi <218829269+GabiNun2@users.noreply.github.com> Date: Tue, 30 Jun 2026 08:11:13 +0300 Subject: [PATCH 09/28] Update Invoke-WPFUpdatesdisable.ps1 --- functions/public/Invoke-WPFUpdatesdisable.ps1 | 8 -------- 1 file changed, 8 deletions(-) diff --git a/functions/public/Invoke-WPFUpdatesdisable.ps1 b/functions/public/Invoke-WPFUpdatesdisable.ps1 index fdf4a28594..25430d7b7a 100644 --- a/functions/public/Invoke-WPFUpdatesdisable.ps1 +++ b/functions/public/Invoke-WPFUpdatesdisable.ps1 @@ -1,6 +1,4 @@ function Invoke-WPFUpdatesdisable { - Write-Host "Note: This will prevent you from using the Microsoft Store." -ForegroundColor Yellow - Write-Host "Disabling windows update services" Set-Service -Name UsoSvc -StartupType Disabled @@ -12,16 +10,10 @@ function Invoke-WPFUpdatesdisable { icacls $Env:SystemRoot\System32\usosvc.dll /grant Everyone:F Rename-Item -Path $Env:SystemRoot\System32\usosvc.dll -NewName usosvc.dlle - takeown /f $Env:SystemRoot\System32\wuaueng.dll - icacls $Env:SystemRoot\System32\wuaueng.dll /grant Everyone:F - Rename-Item -Path $Env:SystemRoot\System32\wuaueng.dll -NewName wuaueng.dlle - Write-Host "Clearing SoftwareDistribution folder" Remove-Item -Path $Env:SystemRoot\SoftwareDistribution\* -Recurse -Force Write-Host "=================================" -ForegroundColor Green Write-Host "--- Updates Are Disabled ---" -ForegroundColor Green Write-Host "=================================" -ForegroundColor Green - - Write-Host "Note: You must restart your system in order for all changes to take effect." -ForegroundColor Yellow } From ff54b567f4402cb37f17c78d8d6d3c915f879c08 Mon Sep 17 00:00:00 2001 From: Gabi <218829269+GabiNun2@users.noreply.github.com> Date: Tue, 30 Jun 2026 08:12:27 +0300 Subject: [PATCH 10/28] Update Invoke-WPFUpdatesdefault.ps1 --- functions/public/Invoke-WPFUpdatesdefault.ps1 | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/functions/public/Invoke-WPFUpdatesdefault.ps1 b/functions/public/Invoke-WPFUpdatesdefault.ps1 index 0d31bc83b9..a46594027e 100644 --- a/functions/public/Invoke-WPFUpdatesdefault.ps1 +++ b/functions/public/Invoke-WPFUpdatesdefault.ps1 @@ -1,10 +1,4 @@ function Invoke-WPFUpdatesdefault { - <# - - .SYNOPSIS - Resets Windows Update settings to default - - #> $ErrorActionPreference = 'SilentlyContinue' Write-Host "Removing Windows Update policy settings..." -ForegroundColor Green @@ -18,8 +12,7 @@ function Invoke-WPFUpdatesdefault { Write-Host "Reenabling Windows Update Services..." -ForegroundColor Green - icacls $Env:SystemRoot\System32\usosvc.dll /grant Everyone:F - icacls $Env:SystemRoot\System32\wuaueng.dll /grant Everyone:F + Rename-Item -Path $Env:SystemRoot\System32\usosvc.dlle -NewName usosvc.dll Write-Host "Restored BITS to Manual" Set-Service -Name BITS -StartupType Manual From 1f9dd66c9eb8a2cec2fd2cafef7bf5f63b01e99f Mon Sep 17 00:00:00 2001 From: Gabi <218829269+GabiNun2@users.noreply.github.com> Date: Tue, 30 Jun 2026 08:13:51 +0300 Subject: [PATCH 11/28] Update Invoke-WPFUpdatesdefault.ps1 --- functions/public/Invoke-WPFUpdatesdefault.ps1 | 1 - 1 file changed, 1 deletion(-) diff --git a/functions/public/Invoke-WPFUpdatesdefault.ps1 b/functions/public/Invoke-WPFUpdatesdefault.ps1 index a46594027e..d3a40733a2 100644 --- a/functions/public/Invoke-WPFUpdatesdefault.ps1 +++ b/functions/public/Invoke-WPFUpdatesdefault.ps1 @@ -11,7 +11,6 @@ function Invoke-WPFUpdatesdefault { Remove-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" -Recurse -Force Write-Host "Reenabling Windows Update Services..." -ForegroundColor Green - Rename-Item -Path $Env:SystemRoot\System32\usosvc.dlle -NewName usosvc.dll Write-Host "Restored BITS to Manual" From 40fd157145d80047621fb30c03765c8ce2569b13 Mon Sep 17 00:00:00 2001 From: Gabi <218829269+GabiNun2@users.noreply.github.com> Date: Tue, 30 Jun 2026 08:20:42 +0300 Subject: [PATCH 12/28] Update Invoke-WPFUpdatesdisable.ps1 --- functions/public/Invoke-WPFUpdatesdisable.ps1 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/functions/public/Invoke-WPFUpdatesdisable.ps1 b/functions/public/Invoke-WPFUpdatesdisable.ps1 index 25430d7b7a..95837e95af 100644 --- a/functions/public/Invoke-WPFUpdatesdisable.ps1 +++ b/functions/public/Invoke-WPFUpdatesdisable.ps1 @@ -1,7 +1,10 @@ function Invoke-WPFUpdatesdisable { Write-Host "Disabling windows update services" + Stop-Service -Name UsoSvc Set-Service -Name UsoSvc -StartupType Disabled + + Stop-Service -Name wuauserv Set-Service -Name wuauserv -StartupType Disabled Write-Host "Blocking execution of windows update dlls" From ad5c035cc97712eee9949b92c64de8ad036a0e16 Mon Sep 17 00:00:00 2001 From: Gabi <218829269+GabiNun2@users.noreply.github.com> Date: Tue, 30 Jun 2026 08:21:48 +0300 Subject: [PATCH 13/28] Update Invoke-WPFUpdatesdefault.ps1 --- functions/public/Invoke-WPFUpdatesdefault.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/public/Invoke-WPFUpdatesdefault.ps1 b/functions/public/Invoke-WPFUpdatesdefault.ps1 index d3a40733a2..22d61ea27b 100644 --- a/functions/public/Invoke-WPFUpdatesdefault.ps1 +++ b/functions/public/Invoke-WPFUpdatesdefault.ps1 @@ -11,7 +11,7 @@ function Invoke-WPFUpdatesdefault { Remove-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" -Recurse -Force Write-Host "Reenabling Windows Update Services..." -ForegroundColor Green - Rename-Item -Path $Env:SystemRoot\System32\usosvc.dlle -NewName usosvc.dll + Rename-Item -Path $Env:SystemRoot\System32\usosvc.dll -NewName usosvc.dlle Write-Host "Restored BITS to Manual" Set-Service -Name BITS -StartupType Manual From b20a9da3f1771b5de915dd198d706d3df478b6d4 Mon Sep 17 00:00:00 2001 From: Gabi <218829269+GabiNun2@users.noreply.github.com> Date: Tue, 30 Jun 2026 08:22:50 +0300 Subject: [PATCH 14/28] Update Invoke-WPFUpdatesdefault.ps1 --- functions/public/Invoke-WPFUpdatesdefault.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/public/Invoke-WPFUpdatesdefault.ps1 b/functions/public/Invoke-WPFUpdatesdefault.ps1 index 22d61ea27b..3ef2496476 100644 --- a/functions/public/Invoke-WPFUpdatesdefault.ps1 +++ b/functions/public/Invoke-WPFUpdatesdefault.ps1 @@ -20,8 +20,8 @@ function Invoke-WPFUpdatesdefault { Set-Service -Name wuauserv -StartupType Manual Write-Host "Restored UsoSvc to Automatic." - Start-Service -Name UsoSvc Set-Service -Name UsoSvc -StartupType Automatic + Start-Service -Name UsoSvc Write-Host "Restored WaaSMedicSvc to Manual." Set-Service -Name WaaSMedicSvc -StartupType Manual From 39e7deae514aa4ebaec27ea764deec3163d29da4 Mon Sep 17 00:00:00 2001 From: Gabi <218829269+GabiNun2@users.noreply.github.com> Date: Tue, 30 Jun 2026 08:25:22 +0300 Subject: [PATCH 15/28] Update Invoke-WPFUpdatesdefault.ps1 --- functions/public/Invoke-WPFUpdatesdefault.ps1 | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/functions/public/Invoke-WPFUpdatesdefault.ps1 b/functions/public/Invoke-WPFUpdatesdefault.ps1 index 3ef2496476..9da1149bee 100644 --- a/functions/public/Invoke-WPFUpdatesdefault.ps1 +++ b/functions/public/Invoke-WPFUpdatesdefault.ps1 @@ -1,7 +1,7 @@ function Invoke-WPFUpdatesdefault { $ErrorActionPreference = 'SilentlyContinue' - Write-Host "Removing Windows Update policy settings..." -ForegroundColor Green + Write-Host "Removing Windows Update policy settings..." Remove-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" -Recurse -Force Remove-Item -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\DeliveryOptimization" -Recurse -Force @@ -10,7 +10,7 @@ function Invoke-WPFUpdatesdefault { Remove-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\DriverSearching" -Recurse -Force Remove-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" -Recurse -Force - Write-Host "Reenabling Windows Update Services..." -ForegroundColor Green + Write-Host "Reenabling Windows Update Services..." Rename-Item -Path $Env:SystemRoot\System32\usosvc.dll -NewName usosvc.dlle Write-Host "Restored BITS to Manual" @@ -26,7 +26,7 @@ function Invoke-WPFUpdatesdefault { Write-Host "Restored WaaSMedicSvc to Manual." Set-Service -Name WaaSMedicSvc -StartupType Manual - Write-Host "Enabling update related scheduled tasks..." -ForegroundColor Green + Write-Host "Enabling update related scheduled tasks..." $Tasks = '\Microsoft\Windows\InstallService\*', @@ -43,9 +43,9 @@ function Invoke-WPFUpdatesdefault { Write-Host "Windows Local Policies Reset to Default." secedit /configure /cfg "$Env:SystemRoot\inf\defltbase.inf" /db defltbase.sdb - Write-Host "===================================================" -ForegroundColor Green - Write-Host "--- Windows Update Settings Reset to Default ---" -ForegroundColor Green - Write-Host "===================================================" -ForegroundColor Green + Write-Host "===================================================" + Write-Host "--- Windows Update Settings Reset to Default ---" + Write-Host "===================================================" Write-Host "Note: You must restart your system in order for all changes to take effect." -ForegroundColor Yellow } From a081d9010971689f5f9cd1135486220879ddbd76 Mon Sep 17 00:00:00 2001 From: Gabi <218829269+GabiNun2@users.noreply.github.com> Date: Tue, 30 Jun 2026 08:25:36 +0300 Subject: [PATCH 16/28] Update Invoke-WPFUpdatesdefault.ps1 --- functions/public/Invoke-WPFUpdatesdefault.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/public/Invoke-WPFUpdatesdefault.ps1 b/functions/public/Invoke-WPFUpdatesdefault.ps1 index 9da1149bee..c2492b0baa 100644 --- a/functions/public/Invoke-WPFUpdatesdefault.ps1 +++ b/functions/public/Invoke-WPFUpdatesdefault.ps1 @@ -11,7 +11,7 @@ function Invoke-WPFUpdatesdefault { Remove-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" -Recurse -Force Write-Host "Reenabling Windows Update Services..." - Rename-Item -Path $Env:SystemRoot\System32\usosvc.dll -NewName usosvc.dlle + Rename-Item -Path $Env:SystemRoot\System32\usosvc.dlle -NewName usosvc.dll Write-Host "Restored BITS to Manual" Set-Service -Name BITS -StartupType Manual From 59bb6eb36eb1c618475003cdeaf99938c45dc471 Mon Sep 17 00:00:00 2001 From: Gabi <218829269+GabiNun2@users.noreply.github.com> Date: Tue, 30 Jun 2026 08:30:09 +0300 Subject: [PATCH 17/28] Update Invoke-WPFUpdatesdefault.ps1 --- functions/public/Invoke-WPFUpdatesdefault.ps1 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/functions/public/Invoke-WPFUpdatesdefault.ps1 b/functions/public/Invoke-WPFUpdatesdefault.ps1 index c2492b0baa..14d5469151 100644 --- a/functions/public/Invoke-WPFUpdatesdefault.ps1 +++ b/functions/public/Invoke-WPFUpdatesdefault.ps1 @@ -43,9 +43,9 @@ function Invoke-WPFUpdatesdefault { Write-Host "Windows Local Policies Reset to Default." secedit /configure /cfg "$Env:SystemRoot\inf\defltbase.inf" /db defltbase.sdb - Write-Host "===================================================" - Write-Host "--- Windows Update Settings Reset to Default ---" - Write-Host "===================================================" + Write-Host "===================================================" -ForegroundColor Green + Write-Host "--- Windows Update Settings Reset to Default ---" -ForegroundColor Green + Write-Host "===================================================" -ForegroundColor Green Write-Host "Note: You must restart your system in order for all changes to take effect." -ForegroundColor Yellow } From 3424fc3caad87f8c7e2779de2b929fd7fa93261d Mon Sep 17 00:00:00 2001 From: Gabi <218829269+GabiNun2@users.noreply.github.com> Date: Tue, 30 Jun 2026 08:32:37 +0300 Subject: [PATCH 18/28] Update Invoke-WPFUpdatesdefault.ps1 --- functions/public/Invoke-WPFUpdatesdefault.ps1 | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/functions/public/Invoke-WPFUpdatesdefault.ps1 b/functions/public/Invoke-WPFUpdatesdefault.ps1 index 14d5469151..189dce46fc 100644 --- a/functions/public/Invoke-WPFUpdatesdefault.ps1 +++ b/functions/public/Invoke-WPFUpdatesdefault.ps1 @@ -13,18 +13,17 @@ function Invoke-WPFUpdatesdefault { Write-Host "Reenabling Windows Update Services..." Rename-Item -Path $Env:SystemRoot\System32\usosvc.dlle -NewName usosvc.dll - Write-Host "Restored BITS to Manual" Set-Service -Name BITS -StartupType Manual + Write-Host "Restored BITS to Manual" - Write-Host "Restored wuauserv to Manual." Set-Service -Name wuauserv -StartupType Manual + Write-Host "Restored wuauserv to Manual." - Write-Host "Restored UsoSvc to Automatic." Set-Service -Name UsoSvc -StartupType Automatic - Start-Service -Name UsoSvc + Write-Host "Restored UsoSvc to Automatic." - Write-Host "Restored WaaSMedicSvc to Manual." Set-Service -Name WaaSMedicSvc -StartupType Manual + Write-Host "Restored WaaSMedicSvc to Manual." Write-Host "Enabling update related scheduled tasks..." From 0075542c39371602bee05c6f22c64186621242f8 Mon Sep 17 00:00:00 2001 From: Gabi <218829269+GabiNun2@users.noreply.github.com> Date: Tue, 30 Jun 2026 08:34:19 +0300 Subject: [PATCH 19/28] Update Invoke-WPFUpdatesdisable.ps1 --- functions/public/Invoke-WPFUpdatesdisable.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/public/Invoke-WPFUpdatesdisable.ps1 b/functions/public/Invoke-WPFUpdatesdisable.ps1 index 95837e95af..7646db3926 100644 --- a/functions/public/Invoke-WPFUpdatesdisable.ps1 +++ b/functions/public/Invoke-WPFUpdatesdisable.ps1 @@ -14,7 +14,7 @@ function Invoke-WPFUpdatesdisable { Rename-Item -Path $Env:SystemRoot\System32\usosvc.dll -NewName usosvc.dlle Write-Host "Clearing SoftwareDistribution folder" - Remove-Item -Path $Env:SystemRoot\SoftwareDistribution\* -Recurse -Force + Remove-Item -Path $Env:SystemRoot\SoftwareDistribution\* -Recurse -Force -ErrorAction SilentlyContinue Write-Host "=================================" -ForegroundColor Green Write-Host "--- Updates Are Disabled ---" -ForegroundColor Green From c9c6454cf297d55d5818f82a3fcb1ee05148710a Mon Sep 17 00:00:00 2001 From: Gabi <218829269+GabiNun2@users.noreply.github.com> Date: Thu, 2 Jul 2026 14:55:36 +0300 Subject: [PATCH 20/28] Update Invoke-WPFUpdatesdefault.ps1 --- functions/public/Invoke-WPFUpdatesdefault.ps1 | 20 ------------------- 1 file changed, 20 deletions(-) diff --git a/functions/public/Invoke-WPFUpdatesdefault.ps1 b/functions/public/Invoke-WPFUpdatesdefault.ps1 index ab855fc6b5..02f839e9e9 100644 --- a/functions/public/Invoke-WPFUpdatesdefault.ps1 +++ b/functions/public/Invoke-WPFUpdatesdefault.ps1 @@ -1,8 +1,6 @@ function Invoke-WPFUpdatesdefault { $ErrorActionPreference = 'SilentlyContinue' - Write-WinUtilLog -Component "Updates" -Message "Resetting Windows Update settings to default." - Write-Host "Removing Windows Update policy settings..." -ForegroundColor Green Write-WinUtilLog -Component "Updates" -Message "Removing Windows Update policy registry paths." Remove-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" -Recurse -Force @@ -12,35 +10,23 @@ function Invoke-WPFUpdatesdefault { Remove-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\DriverSearching" -Recurse -Force Remove-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" -Recurse -Force - Write-Host "Showing Windows Updates in settings..." Write-WinUtilLog -Component "Updates" -Message "Showing Windows Update settings page." Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer -Name SettingsPageVisibility - Write-Host "Reenabling Windows Update Services..." -ForegroundColor Green Write-WinUtilLog -Component "Updates" -Message "Restoring Windows Update service startup types." - Write-Host "Restored BITS to Manual." Write-WinUtilLog -Component "Updates" -Message "Restoring BITS service to Manual." Set-Service -Name BITS -StartupType Manual - Write-Host "Restored BITS to Manual" - Write-Host "Restored wuauserv to Manual." Write-WinUtilLog -Component "Updates" -Message "Restoring wuauserv service to Manual." Set-Service -Name wuauserv -StartupType Manual - Write-Host "Restored wuauserv to Manual." - Write-Host "Restored UsoSvc to Automatic." Write-WinUtilLog -Component "Updates" -Message "Starting UsoSvc service and restoring startup type to Automatic." - Start-Service -Name UsoSvc Set-Service -Name UsoSvc -StartupType Automatic - Write-Host "Restored UsoSvc to Automatic." - Write-Host "Restored WaaSMedicSvc to Manual." Write-WinUtilLog -Component "Updates" -Message "Restoring WaaSMedicSvc service to Manual." Set-Service -Name WaaSMedicSvc -StartupType Manual - Write-Host "Restored WaaSMedicSvc to Manual." - Write-Host "Enabling update related scheduled tasks..." -ForegroundColor Green Write-WinUtilLog -Component "Updates" -Message "Enabling update related scheduled tasks." $Tasks = @@ -55,14 +41,8 @@ function Invoke-WPFUpdatesdefault { Get-ScheduledTask -TaskPath $Task | Enable-ScheduledTask -ErrorAction SilentlyContinue } - Write-Host "Windows Local Policies Reset to Default." Write-WinUtilLog -Component "Updates" -Message "Resetting local security policy to defaults with secedit." secedit /configure /cfg "$Env:SystemRoot\inf\defltbase.inf" /db defltbase.sdb - Write-Host "===================================================" -ForegroundColor Green - Write-Host "--- Windows Update Settings Reset to Default ---" -ForegroundColor Green - Write-Host "===================================================" -ForegroundColor Green - - Write-Host "Note: You must restart your system in order for all changes to take effect." -ForegroundColor Yellow Write-WinUtilLog -Component "Updates" -Message "Windows Update default workflow completed. Restart required." } From 36a180b0f91162e3ea8d0047b5fa6d8cbc127c53 Mon Sep 17 00:00:00 2001 From: Gabi <218829269+GabiNun2@users.noreply.github.com> Date: Thu, 2 Jul 2026 14:58:28 +0300 Subject: [PATCH 21/28] Update Invoke-WPFUpdatesdisable.ps1 --- functions/public/Invoke-WPFUpdatesdisable.ps1 | 42 ++----------------- 1 file changed, 4 insertions(+), 38 deletions(-) diff --git a/functions/public/Invoke-WPFUpdatesdisable.ps1 b/functions/public/Invoke-WPFUpdatesdisable.ps1 index 8f623fb8c6..561137eb82 100644 --- a/functions/public/Invoke-WPFUpdatesdisable.ps1 +++ b/functions/public/Invoke-WPFUpdatesdisable.ps1 @@ -1,17 +1,4 @@ function Invoke-WPFUpdatesdisable { - Write-Host "Disabling windows update services" - - .SYNOPSIS - Disables Windows Update - - .NOTES - Disabling Windows Update is not recommended. This is only for advanced users who know what they are doing. - - #> - $ErrorActionPreference = 'SilentlyContinue' - Write-WinUtilLog -Component "Updates" -Message "Disabling Windows Update settings." - - Write-Host "Configuring registry settings..." -ForegroundColor Yellow Write-WinUtilLog -Component "Updates" -Message "Configuring Windows Update registry policy values for disable mode." New-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" -Force @@ -21,41 +8,20 @@ function Invoke-WPFUpdatesdisable { New-Item -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\DeliveryOptimization\Config" -Force Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\DeliveryOptimization\Config" -Name "DODownloadMode" -Type DWord -Value 0 - Write-Host "Hiding Windows Updates from settings..." - Write-WinUtilLog -Component "Updates" -Message "Hiding Windows Update settings page." - Set-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer -Name SettingsPageVisibility -Value hide:windowsupdate - - Write-Host "Disabled BITS Service." - Write-WinUtilLog -Component "Updates" -Message "Disabling BITS service." - Set-Service -Name BITS -StartupType Disabled - - Write-Host "Disabled wuauserv Service." Write-WinUtilLog -Component "Updates" -Message "Disabling wuauserv service." Set-Service -Name wuauserv -StartupType Disabled - Write-Host "Disabled UsoSvc Service." - Write-WinUtilLog -Component "Updates" -Message "Stopping and disabling UsoSvc service." - Stop-Service -Name UsoSvc -Force + Write-WinUtilLog -Component "Updates" -Message "Disabling UsoSvc service." Set-Service -Name UsoSvc -StartupType Disabled - Remove-Item "C:\Windows\SoftwareDistribution\*" -Recurse -Force - Write-Host "Cleared SoftwareDistribution folder." - Write-WinUtilLog -Component "Updates" -Message "Cleared SoftwareDistribution folder." - - Write-Host "Disabling update related scheduled tasks..." -ForegroundColor Yellow - Write-WinUtilLog -Component "Updates" -Message "Disabling update related scheduled tasks." + Write-WinUtilLog -Component "Updates" -Message "Disabling update related dll files." takeown /f $Env:SystemRoot\System32\usosvc.dll icacls $Env:SystemRoot\System32\usosvc.dll /grant Everyone:F Rename-Item -Path $Env:SystemRoot\System32\usosvc.dll -NewName usosvc.dlle - Write-Host "Clearing SoftwareDistribution folder" - Remove-Item -Path $Env:SystemRoot\SoftwareDistribution\* -Recurse -Force -ErrorAction SilentlyContinue - - Write-Host "=================================" -ForegroundColor Green - Write-Host "--- Updates Are Disabled ---" -ForegroundColor Green - Write-Host "=================================" -ForegroundColor Green + Write-WinUtilLog -Component "Updates" -Message "Clearing SoftwareDistribution folder." + Remove-Item "C:\Windows\SoftwareDistribution\*" -Recurse -Force -ErrorAction SilentlyContinue - Write-Host "Note: You must restart your system in order for all changes to take effect." -ForegroundColor Yellow Write-WinUtilLog -Component "Updates" -Message "Windows Update disable workflow completed. Restart required." } From 933763504b5221ced84d8c59462e145d47c07c32 Mon Sep 17 00:00:00 2001 From: Gabi <218829269+GabiNun2@users.noreply.github.com> Date: Fri, 3 Jul 2026 07:28:56 +0300 Subject: [PATCH 22/28] Update Invoke-WPFUpdatesdefault.ps1 --- functions/public/Invoke-WPFUpdatesdefault.ps1 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/functions/public/Invoke-WPFUpdatesdefault.ps1 b/functions/public/Invoke-WPFUpdatesdefault.ps1 index 02f839e9e9..77b73e3b86 100644 --- a/functions/public/Invoke-WPFUpdatesdefault.ps1 +++ b/functions/public/Invoke-WPFUpdatesdefault.ps1 @@ -44,5 +44,10 @@ function Invoke-WPFUpdatesdefault { Write-WinUtilLog -Component "Updates" -Message "Resetting local security policy to defaults with secedit." secedit /configure /cfg "$Env:SystemRoot\inf\defltbase.inf" /db defltbase.sdb + + Write-WinUtilLog -Component "Updates" -Message "===================================================" + Write-WinUtilLog -Component "Updates" -Message "--- Windows Update Settings Reset to Default ---" + Write-WinUtilLog -Component "Updates" -Message "===================================================" + Write-WinUtilLog -Component "Updates" -Message "Windows Update default workflow completed. Restart required." } From 3031c7c61c3ad6f360155b43afb318f71c8a2565 Mon Sep 17 00:00:00 2001 From: Gabi <218829269+GabiNun2@users.noreply.github.com> Date: Fri, 3 Jul 2026 07:31:37 +0300 Subject: [PATCH 23/28] Update Invoke-WPFUpdatesdisable.ps1 --- functions/public/Invoke-WPFUpdatesdisable.ps1 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/functions/public/Invoke-WPFUpdatesdisable.ps1 b/functions/public/Invoke-WPFUpdatesdisable.ps1 index 561137eb82..7c4a36f6c0 100644 --- a/functions/public/Invoke-WPFUpdatesdisable.ps1 +++ b/functions/public/Invoke-WPFUpdatesdisable.ps1 @@ -23,5 +23,9 @@ function Invoke-WPFUpdatesdisable { Write-WinUtilLog -Component "Updates" -Message "Clearing SoftwareDistribution folder." Remove-Item "C:\Windows\SoftwareDistribution\*" -Recurse -Force -ErrorAction SilentlyContinue + Write-WinUtilLog -Component "Updates" -Message "=================================" -ForegroundColor Green + Write-WinUtilLog -Component "Updates" -Message "--- Updates Are Disabled ---" -ForegroundColor Green + Write-WinUtilLog -Component "Updates" -Message "=================================" -ForegroundColor Green + Write-WinUtilLog -Component "Updates" -Message "Windows Update disable workflow completed. Restart required." } From 3d6618985915e20057152de9ef622ce07f238403 Mon Sep 17 00:00:00 2001 From: Gabi <218829269+GabiNun2@users.noreply.github.com> Date: Fri, 3 Jul 2026 07:31:56 +0300 Subject: [PATCH 24/28] Update Invoke-WPFUpdatesdisable.ps1 --- functions/public/Invoke-WPFUpdatesdisable.ps1 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/functions/public/Invoke-WPFUpdatesdisable.ps1 b/functions/public/Invoke-WPFUpdatesdisable.ps1 index 7c4a36f6c0..1864da103d 100644 --- a/functions/public/Invoke-WPFUpdatesdisable.ps1 +++ b/functions/public/Invoke-WPFUpdatesdisable.ps1 @@ -23,9 +23,9 @@ function Invoke-WPFUpdatesdisable { Write-WinUtilLog -Component "Updates" -Message "Clearing SoftwareDistribution folder." Remove-Item "C:\Windows\SoftwareDistribution\*" -Recurse -Force -ErrorAction SilentlyContinue - Write-WinUtilLog -Component "Updates" -Message "=================================" -ForegroundColor Green - Write-WinUtilLog -Component "Updates" -Message "--- Updates Are Disabled ---" -ForegroundColor Green - Write-WinUtilLog -Component "Updates" -Message "=================================" -ForegroundColor Green + Write-WinUtilLog -Component "Updates" -Message "=================================" + Write-WinUtilLog -Component "Updates" -Message "--- Updates Are Disabled ---" + Write-WinUtilLog -Component "Updates" -Message "=================================" Write-WinUtilLog -Component "Updates" -Message "Windows Update disable workflow completed. Restart required." } From d92d76eefed64c833f90d0625ebfdc274aedb043 Mon Sep 17 00:00:00 2001 From: Gabi <218829269+GabiNun2@users.noreply.github.com> Date: Fri, 3 Jul 2026 07:35:32 +0300 Subject: [PATCH 25/28] Update Invoke-WPFUpdatesdefault.ps1 --- functions/public/Invoke-WPFUpdatesdefault.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/public/Invoke-WPFUpdatesdefault.ps1 b/functions/public/Invoke-WPFUpdatesdefault.ps1 index 77b73e3b86..4a81e70e58 100644 --- a/functions/public/Invoke-WPFUpdatesdefault.ps1 +++ b/functions/public/Invoke-WPFUpdatesdefault.ps1 @@ -21,7 +21,7 @@ function Invoke-WPFUpdatesdefault { Write-WinUtilLog -Component "Updates" -Message "Restoring wuauserv service to Manual." Set-Service -Name wuauserv -StartupType Manual - Write-WinUtilLog -Component "Updates" -Message "Starting UsoSvc service and restoring startup type to Automatic." + Write-WinUtilLog -Component "Updates" -Message "Restoring startup type to Automatic." Set-Service -Name UsoSvc -StartupType Automatic Write-WinUtilLog -Component "Updates" -Message "Restoring WaaSMedicSvc service to Manual." From 85ac80461a34709d502ae3a3b8761e549b32983e Mon Sep 17 00:00:00 2001 From: Gabi <218829269+GabiNun2@users.noreply.github.com> Date: Fri, 3 Jul 2026 07:35:52 +0300 Subject: [PATCH 26/28] Update Invoke-WPFUpdatesdefault.ps1 --- functions/public/Invoke-WPFUpdatesdefault.ps1 | 1 - 1 file changed, 1 deletion(-) diff --git a/functions/public/Invoke-WPFUpdatesdefault.ps1 b/functions/public/Invoke-WPFUpdatesdefault.ps1 index 4a81e70e58..cf5934d6bd 100644 --- a/functions/public/Invoke-WPFUpdatesdefault.ps1 +++ b/functions/public/Invoke-WPFUpdatesdefault.ps1 @@ -44,7 +44,6 @@ function Invoke-WPFUpdatesdefault { Write-WinUtilLog -Component "Updates" -Message "Resetting local security policy to defaults with secedit." secedit /configure /cfg "$Env:SystemRoot\inf\defltbase.inf" /db defltbase.sdb - Write-WinUtilLog -Component "Updates" -Message "===================================================" Write-WinUtilLog -Component "Updates" -Message "--- Windows Update Settings Reset to Default ---" Write-WinUtilLog -Component "Updates" -Message "===================================================" From 6c69860b16c85c4a37c1f83e6e79d03f3ec3b10b Mon Sep 17 00:00:00 2001 From: Gabi <218829269+GabiNun2@users.noreply.github.com> Date: Fri, 3 Jul 2026 07:43:46 +0300 Subject: [PATCH 27/28] Update Invoke-WPFUpdatesdefault.ps1 --- functions/public/Invoke-WPFUpdatesdefault.ps1 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/functions/public/Invoke-WPFUpdatesdefault.ps1 b/functions/public/Invoke-WPFUpdatesdefault.ps1 index cf5934d6bd..134282ff9a 100644 --- a/functions/public/Invoke-WPFUpdatesdefault.ps1 +++ b/functions/public/Invoke-WPFUpdatesdefault.ps1 @@ -27,6 +27,9 @@ function Invoke-WPFUpdatesdefault { Write-WinUtilLog -Component "Updates" -Message "Restoring WaaSMedicSvc service to Manual." Set-Service -Name WaaSMedicSvc -StartupType Manual + Write-WinUtilLog -Component "Updates" -Message "Enabling update related dll files." + Rename-Item -Path $Env:SystemRoot\System32\usosvc.dlle -NewName usosvc.dll + Write-WinUtilLog -Component "Updates" -Message "Enabling update related scheduled tasks." $Tasks = From f86fcb92510aea0168a987ce9a798096b9893cf0 Mon Sep 17 00:00:00 2001 From: Gabi <218829269+GabiNun2@users.noreply.github.com> Date: Fri, 3 Jul 2026 07:49:20 +0300 Subject: [PATCH 28/28] Update Invoke-WPFUpdatesdisable.ps1 --- functions/public/Invoke-WPFUpdatesdisable.ps1 | 9 --------- 1 file changed, 9 deletions(-) diff --git a/functions/public/Invoke-WPFUpdatesdisable.ps1 b/functions/public/Invoke-WPFUpdatesdisable.ps1 index 1864da103d..12065b3a34 100644 --- a/functions/public/Invoke-WPFUpdatesdisable.ps1 +++ b/functions/public/Invoke-WPFUpdatesdisable.ps1 @@ -1,13 +1,4 @@ function Invoke-WPFUpdatesdisable { - Write-WinUtilLog -Component "Updates" -Message "Configuring Windows Update registry policy values for disable mode." - New-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" -Force - - Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" -Name "NoAutoUpdate" -Type DWord -Value 1 - Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" -Name "AUOptions" -Type DWord -Value 1 - - New-Item -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\DeliveryOptimization\Config" -Force - Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\DeliveryOptimization\Config" -Name "DODownloadMode" -Type DWord -Value 0 - Write-WinUtilLog -Component "Updates" -Message "Disabling wuauserv service." Set-Service -Name wuauserv -StartupType Disabled