1
0
鏡像自 https://github.com/dockur/windows.git 已同步 2026-06-10 11:59:33 +08:00

fix: Enable Network Discovery by default (#420) (#421)

此提交包含在:
hellodword
2024-04-26 05:23:40 +00:00
提交者 GitHub
父節點 44a5fa3bf4
當前提交 638e21d6b2
共有 12 個檔案被更改,包括 62 行新增2 行删除
+6 -1
查看文件
@@ -487,11 +487,16 @@
</SynchronousCommand>
<SynchronousCommand wcm:action="add">
<Order>24</Order>
<CommandLine>netsh advfirewall firewall set rule group="Network Discovery" new enable=Yes</CommandLine>
<Description>Enable Network Discovery and File Sharing</Description>
</SynchronousCommand>
<SynchronousCommand wcm:action="add">
<Order>25</Order>
<CommandLine>reg.exe add "HKCU\Control Panel\UnsupportedHardwareNotificationCache" /v SV1 /d 0 /t REG_DWORD /f</CommandLine>
<Description>Disable unsupported hardware notifications</Description>
</SynchronousCommand>
<SynchronousCommand wcm:action="add">
<Order>25</Order>
<Order>26</Order>
<CommandLine>reg.exe add "HKCU\Control Panel\UnsupportedHardwareNotificationCache" /v SV2 /d 0 /t REG_DWORD /f</CommandLine>
<Description>Disable unsupported hardware notifications</Description>
</SynchronousCommand>