From c5b94e4bae6332d3c42846b4793feab7a6d11c7d Mon Sep 17 00:00:00 2001 From: Kroese Date: Fri, 26 Apr 2024 15:57:41 +0200 Subject: [PATCH] feat: Enable file sharing by default (#90) --- assets/win10arm64.xml | 27 +++++++++++---------------- assets/win11arm64.xml | 29 ++++++++++++----------------- 2 files changed, 23 insertions(+), 33 deletions(-) diff --git a/assets/win10arm64.xml b/assets/win10arm64.xml index ae082b1..b2ec26e 100644 --- a/assets/win10arm64.xml +++ b/assets/win10arm64.xml @@ -431,43 +431,38 @@ 16 - reg.exe add "HKCU\SOFTWARE\Policies\Microsoft\Windows\Windows Search" /v "AllowCortana" /t REG_DWORD /d 0 /f - Disable Cortana in search - - - 17 reg.exe add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Search" /v "SearchboxTaskbarMode" /t REG_DWORD /d 0 /f Remove Search from the Taskbar - 18 + 17 reg.exe add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "ShowTaskViewButton" /t REG_DWORD /d 0 /f Remove Task View from the Taskbar - 19 + 18 reg.exe add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "TaskbarDa" /t REG_DWORD /d 0 /f Remove Widgets from the Taskbar - 20 + 19 reg.exe add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "TaskbarMn" /t REG_DWORD /d 0 /f Remove Chat from the Taskbar - 21 - reg.exe add "HKLM\SOFTWARE\Policies\Microsoft\Dsh" /v "AllowNewsAndInterests" /t REG_DWORD /d 0 /f - Disable Widgets - - - 22 + 20 reg.exe add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /v "NoAutoUpdate" /t REG_DWORD /d 1 /f Turn off Windows Update auto download - 23 + 21 netsh advfirewall firewall set rule group="Network Discovery" new enable=Yes - Enable Network Discovery and File Sharing + Enable Network Discovery + + + 22 + netsh advfirewall firewall set rule group="File and Printer Sharing" new enable=Yes + Enable File Sharing diff --git a/assets/win11arm64.xml b/assets/win11arm64.xml index 47f3829..94b5e6e 100644 --- a/assets/win11arm64.xml +++ b/assets/win11arm64.xml @@ -450,46 +450,41 @@ 16 - reg.exe add "HKCU\SOFTWARE\Policies\Microsoft\Windows\Windows Search" /v "AllowCortana" /t REG_DWORD /d 0 /f - Disable Cortana in search - - - 17 reg.exe add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "ShowTaskViewButton" /t REG_DWORD /d 0 /f Remove Task View from the Taskbar - 18 + 17 reg.exe add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "TaskbarDa" /t REG_DWORD /d 0 /f Remove Widgets from the Taskbar - 19 + 18 reg.exe add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "TaskbarMn" /t REG_DWORD /d 0 /f Remove Chat from the Taskbar - 20 - reg.exe add "HKLM\SOFTWARE\Policies\Microsoft\Dsh" /v "AllowNewsAndInterests" /t REG_DWORD /d 0 /f - Disable Widgets - - - 21 + 19 reg.exe add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /v "NoAutoUpdate" /t REG_DWORD /d 1 /f Turn off Windows Update auto download - 22 + 20 netsh advfirewall firewall set rule group="Network Discovery" new enable=Yes - Enable Network Discovery and File Sharing + Enable Network Discovery - 23 + 21 + netsh advfirewall firewall set rule group="File and Printer Sharing" new enable=Yes + Enable File Sharing + + + 22 reg.exe add "HKCU\Control Panel\UnsupportedHardwareNotificationCache" /v SV1 /d 0 /t REG_DWORD /f Disable unsupported hardware notifications - 24 + 23 reg.exe add "HKCU\Control Panel\UnsupportedHardwareNotificationCache" /v SV2 /d 0 /t REG_DWORD /f Disable unsupported hardware notifications