Skip to content

Commit

Permalink
fix(finalize.cmd): fax recipient
Browse files Browse the repository at this point in the history
  • Loading branch information
Xyueta committed Aug 2, 2023
1 parent c0a3026 commit e94a3c7
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/playbook/Executables/FINALIZE.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down

0 comments on commit e94a3c7

Please sign in to comment.