From 2acca347df29d1776ec594ec39f513d613222dab Mon Sep 17 00:00:00 2001 From: Przemek Grondek Date: Mon, 1 May 2023 01:35:53 +0200 Subject: [PATCH] Disable windows update automatic restart --- .../features/lite/improvements.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/Configuration/features/lite/improvements.yml b/src/Configuration/features/lite/improvements.yml index 5be3b95..5cf5e4a 100644 --- a/src/Configuration/features/lite/improvements.yml +++ b/src/Configuration/features/lite/improvements.yml @@ -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