Disable windows update automatic restart

This commit is contained in:
Przemek Grondek 2023-05-01 01:35:53 +02:00
parent 2fcb328d0f
commit 2acca347df

View File

@ -126,3 +126,21 @@ actions:
data: 'Off'
type: REG_SZ
# Disable Windows Update automatic restart
- !registryValue:
path: 'HKLM\Software\Microsoft\WindowsUpdate\UX\Settings'
value: 'UxOption'
data: '1'
type: REG_DWORD
- !writeStatus: {status: "Cleaning up the WinSxS folder"}
- !cmd:
exeDir: true
command: 'DISM /Online /Cleanup-Image /StartComponentCleanup'
weight: 30
# Uninstall Work Folders Client
- !cmd:
exeDir: true
command: 'dism /online /Disable-Feature /FeatureName:WorkFolders-Client /Quiet /NoRestart'
weight: 30