From f8bf931cceffe29971dae74f5a71542adf52b2c0 Mon Sep 17 00:00:00 2001
From: hellodword <46193371+hellodword@users.noreply.github.com>
Date: Fri, 26 Apr 2024 04:00:50 +0000
Subject: [PATCH] fix: Enable Network Discovery and File Sharing by default
(#420)
---
assets/win10x64.xml | 5 +++++
assets/win11x64.xml | 5 +++++
2 files changed, 10 insertions(+)
diff --git a/assets/win10x64.xml b/assets/win10x64.xml
index 994b7b9..581f0d5 100644
--- a/assets/win10x64.xml
+++ b/assets/win10x64.xml
@@ -469,6 +469,11 @@
reg.exe add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /v "NoAutoUpdate" /t REG_DWORD /d 1 /f
Turn off Windows Update auto download
+
+ 24
+ netsh advfirewall firewall set rule group="Network Discovery" new enable=Yes
+ Enable Network Discovery and File Sharing
+
diff --git a/assets/win11x64.xml b/assets/win11x64.xml
index 4d02972..52cedd1 100644
--- a/assets/win11x64.xml
+++ b/assets/win11x64.xml
@@ -497,6 +497,11 @@
reg.exe add "HKCU\Control Panel\UnsupportedHardwareNotificationCache" /v SV2 /d 0 /t REG_DWORD /f
Disable unsupported hardware notifications
+
+ 26
+ netsh advfirewall firewall set rule group="Network Discovery" new enable=Yes
+ Enable Network Discovery and File Sharing
+