From 638e21d6b235f61088151e3936bda6fad2cf1d2a Mon Sep 17 00:00:00 2001 From: hellodword <46193371+hellodword@users.noreply.github.com> Date: Fri, 26 Apr 2024 05:23:40 +0000 Subject: [PATCH] fix: Enable Network Discovery by default (#420) (#421) --- assets/win10x64-enterprise-eval.xml | 5 +++++ assets/win10x64-iot.xml | 5 +++++ assets/win10x64-ltsc.xml | 5 +++++ assets/win10x64.xml | 5 +++++ assets/win11x64-enterprise-eval.xml | 7 ++++++- assets/win11x64.xml | 7 ++++++- assets/win2016-eval.xml | 5 +++++ assets/win2019-eval.xml | 5 +++++ assets/win2022-eval.xml | 5 +++++ assets/win7x64.xml | 5 +++++ assets/win81x64-enterprise-eval.xml | 5 +++++ assets/win81x64.xml | 5 +++++ 12 files changed, 62 insertions(+), 2 deletions(-) diff --git a/assets/win10x64-enterprise-eval.xml b/assets/win10x64-enterprise-eval.xml index e993ffb..93fece2 100644 --- a/assets/win10x64-enterprise-eval.xml +++ b/assets/win10x64-enterprise-eval.xml @@ -467,6 +467,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/win10x64-iot.xml b/assets/win10x64-iot.xml index affc4bf..f72d635 100644 --- a/assets/win10x64-iot.xml +++ b/assets/win10x64-iot.xml @@ -475,6 +475,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/win10x64-ltsc.xml b/assets/win10x64-ltsc.xml index 32a16ec..666a688 100644 --- a/assets/win10x64-ltsc.xml +++ b/assets/win10x64-ltsc.xml @@ -473,6 +473,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/win10x64.xml b/assets/win10x64.xml index 994b7b9..11b4fd8 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-enterprise-eval.xml b/assets/win11x64-enterprise-eval.xml index 8489b8d..06492db 100644 --- a/assets/win11x64-enterprise-eval.xml +++ b/assets/win11x64-enterprise-eval.xml @@ -487,11 +487,16 @@ 24 + netsh advfirewall firewall set rule group="Network Discovery" new enable=Yes + Enable Network Discovery and File Sharing + + + 25 reg.exe add "HKCU\Control Panel\UnsupportedHardwareNotificationCache" /v SV1 /d 0 /t REG_DWORD /f Disable unsupported hardware notifications - 25 + 26 reg.exe add "HKCU\Control Panel\UnsupportedHardwareNotificationCache" /v SV2 /d 0 /t REG_DWORD /f Disable unsupported hardware notifications diff --git a/assets/win11x64.xml b/assets/win11x64.xml index 4d02972..a5e3405 100644 --- a/assets/win11x64.xml +++ b/assets/win11x64.xml @@ -489,11 +489,16 @@ 24 + netsh advfirewall firewall set rule group="Network Discovery" new enable=Yes + Enable Network Discovery and File Sharing + + + 25 reg.exe add "HKCU\Control Panel\UnsupportedHardwareNotificationCache" /v SV1 /d 0 /t REG_DWORD /f Disable unsupported hardware notifications - 25 + 26 reg.exe add "HKCU\Control Panel\UnsupportedHardwareNotificationCache" /v SV2 /d 0 /t REG_DWORD /f Disable unsupported hardware notifications diff --git a/assets/win2016-eval.xml b/assets/win2016-eval.xml index 4c5f0fa..06de1d4 100644 --- a/assets/win2016-eval.xml +++ b/assets/win2016-eval.xml @@ -376,6 +376,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/win2019-eval.xml b/assets/win2019-eval.xml index ac3d142..6310b44 100644 --- a/assets/win2019-eval.xml +++ b/assets/win2019-eval.xml @@ -380,6 +380,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/win2022-eval.xml b/assets/win2022-eval.xml index 0ed385c..a0408cf 100644 --- a/assets/win2022-eval.xml +++ b/assets/win2022-eval.xml @@ -380,6 +380,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/win7x64.xml b/assets/win7x64.xml index 427ae56..a6888ab 100644 --- a/assets/win7x64.xml +++ b/assets/win7x64.xml @@ -295,6 +295,11 @@ reg.exe add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "fAllowUnlistedRemotePrograms" /t REG_DWORD /d 1 /f Enable RemoteAPP to launch unlisted programs + + 15 + netsh advfirewall firewall set rule group="Network Discovery" new enable=Yes + Enable Network Discovery and File Sharing + diff --git a/assets/win81x64-enterprise-eval.xml b/assets/win81x64-enterprise-eval.xml index d8acc85..26c4ceb 100644 --- a/assets/win81x64-enterprise-eval.xml +++ b/assets/win81x64-enterprise-eval.xml @@ -316,6 +316,11 @@ reg.exe add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "fAllowUnlistedRemotePrograms" /t REG_DWORD /d 1 /f Enable RemoteAPP to launch unlisted programs + + 15 + netsh advfirewall firewall set rule group="Network Discovery" new enable=Yes + Enable Network Discovery and File Sharing + diff --git a/assets/win81x64.xml b/assets/win81x64.xml index 2eb540a..a9e33b5 100644 --- a/assets/win81x64.xml +++ b/assets/win81x64.xml @@ -325,6 +325,11 @@ reg.exe add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "fAllowUnlistedRemotePrograms" /t REG_DWORD /d 1 /f Enable RemoteAPP to launch unlisted programs + + 15 + netsh advfirewall firewall set rule group="Network Discovery" new enable=Yes + Enable Network Discovery and File Sharing +