From 9b6636e21a922a4750dc19f4854f8ae679187926 Mon Sep 17 00:00:00 2001 From: undergroundwires Date: Sun, 12 Dec 2021 12:21:50 +0100 Subject: [PATCH] Fix clearing Windows product key showing dialog It's now handled silently instead of prompting user. --- src/application/collections/windows.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/application/collections/windows.yaml b/src/application/collections/windows.yaml index 6442510b..d4509866 100644 --- a/src/application/collections/windows.yaml +++ b/src/application/collections/windows.yaml @@ -516,8 +516,10 @@ actions: code: reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\SideBySide\Configuration" /v "DisableResetbase" /t "REG_DWORD" /d "0" /f - name: Clear Windows Product Key from Registry - code: slmgr /cpky + # Helps to protect it from being stolen and used for identity theft or identifying you. docs: https://winaero.com/blog/remove-windows-10-product-key-from-registry-and-protect-it-from-being-stolen/ + # We use cscript.exe to execute instead of `slmgr` command directly to keep the output but surpress the dialogs. + code: cscript.exe //nologo "%SystemRoot%\system32\slmgr.vbs" /cpky - name: Clear volume backups (shadow copies) docs: