From e94a3c73b5710ec78435b9c0c9a7cc2971f98d78 Mon Sep 17 00:00:00 2001 From: Xyueta Date: Wed, 2 Aug 2023 23:09:20 +0200 Subject: [PATCH] fix(finalize.cmd): fax recipient --- src/playbook/Executables/FINALIZE.cmd | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/playbook/Executables/FINALIZE.cmd b/src/playbook/Executables/FINALIZE.cmd index 5875dcb685..34ba671fcf 100644 --- a/src/playbook/Executables/FINALIZE.cmd +++ b/src/playbook/Executables/FINALIZE.cmd @@ -149,15 +149,17 @@ for /f "tokens=1" %%a in ('netsh int ip show interfaces ^| findstr [0-9]') do ( :: Set correct username variable of the currently logged in user for /f "tokens=3 delims==\" %%a in ('wmic computersystem get username /value ^| find "="') do set "loggedinUsername=%%a" -:: Debloat 'Send To' context menu +:: Hide unnecessary items from the 'Send To' context menu for %%a in ( - "Fax Recipient.lnk" "Documents.mydocs" "Mail Recipient.MAPIMail" ) do ( - del /f /q "C:\Users\%loggedinUsername%\AppData\Roaming\Microsoft\Windows\SendTo\%%~a" + attrib +h "C:\Users\%loggedinUsername%\AppData\Roaming\Microsoft\Windows\SendTo\%%~a" ) +:: Remove Fax Recipient from the 'Send to' context menu as Fax feature is removed +del /f /q "C:\Users\%loggedinUsername%\AppData\Roaming\Microsoft\Windows\SendTo\Fax Recipient.lnk" + :: Disable audio exclusive mode on all devices for %%a in ("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\MMDevices\Audio\Capture", "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\MMDevices\Audio\Render") do ( for /f "delims=" %%b in ('reg query "%%a"') do (