Skip to content

Commit 0919e78

Browse files
authored
microwin remove expedited apps (#2555)
1 parent 41ac93d commit 0919e78

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

functions/public/Invoke-WPFMicrowin.ps1

+16
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,22 @@ public class PowerManagement {
303303
}
304304
}
305305

306+
# Prevent Windows Update Installing so called Expedited Apps
307+
@(
308+
'EdgeUpdate',
309+
'DevHomeUpdate',
310+
'OutlookUpdate',
311+
'CrossDeviceUpdate'
312+
) | ForEach-Object {
313+
Write-Host "Removing Windows Expedited App: $_"
314+
315+
# Copied here After Installation (Online)
316+
# reg delete "HKLM\zSOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Orchestrator\UScheduler\$_" /f | Out-Null
317+
318+
# When in Offline Image
319+
reg delete "HKLM\zSOFTWARE\Microsoft\WindowsUpdate\Orchestrator\UScheduler_Oobe\$_" /f | Out-Null
320+
}
321+
306322
reg add "HKLM\zSOFTWARE\Microsoft\Windows\CurrentVersion\Search" /v "SearchboxTaskbarMode" /t REG_DWORD /d 0 /f
307323
Write-Host "Setting all services to start manually"
308324
reg add "HKLM\zSOFTWARE\CurrentControlSet\Services" /v Start /t REG_DWORD /d 3 /f

0 commit comments

Comments
 (0)