|
- REM 启用 Ctrl + Alt + Del 登录
- reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /f /v "DisableCAD" /t REG_DWORD /d "0" 1>nul 2>nul
- REM 设置 Edge 用户数据和缓存路径
- reg add "HKLM\SOFTWARE\Policies\Microsoft\Edge" /f /v "UserDataDir" /t REG_SZ /d "D:\Bin\Backup\Edge\UserData" 1>nul 2>nul
- reg add "HKLM\SOFTWARE\Policies\Microsoft\Edge" /f /v "DiskCacheDir" /t REG_SZ /d "D:\Bin\Backup\Edge\UserData\Default\Cache" 1>nul 2>nul
- REM 关闭 135 137 138 139 445 端口 (需要开启防火墙)
- netsh advfirewall firewall add rule name = "禁用端口 135 - TCP" dir = in action = block protocol = TCP localport = 135 1>nul 2>nul
- netsh advfirewall firewall add rule name = "禁用端口 135 - UDP" dir = in action = block protocol = UDP localport = 135 1>nul 2>nul
- netsh advfirewall firewall add rule name = "禁用端口 137 - TCP" dir = in action = block protocol = TCP localport = 137 1>nul 2>nul
- netsh advfirewall firewall add rule name = "禁用端口 137 - UDP" dir = in action = block protocol = UDP localport = 137 1>nul 2>nul
- netsh advfirewall firewall add rule name = "禁用端口 138 - TCP" dir = in action = block protocol = TCP localport = 138 1>nul 2>nul
- netsh advfirewall firewall add rule name = "禁用端口 138 - UDP" dir = in action = block protocol = UDP localport = 138 1>nul 2>nul
- netsh advfirewall firewall add rule name = "禁用端口 139 - TCP" dir = in action = block protocol = TCP localport = 139 1>nul 2>nul
- netsh advfirewall firewall add rule name = "禁用端口 139 - UDP" dir = in action = block protocol = UDP localport = 139 1>nul 2>nul
- netsh advfirewall firewall add rule name = "禁用端口 445 - TCP" dir = in action = block protocol = TCP localport = 445 1>nul 2>nul
- netsh advfirewall firewall add rule name = "禁用端口 445 - UDP" dir = in action = block protocol = UDP localport = 445 1>nul 2>nul
复制代码
给你加到脚本里了
AtlasOS Win 10 LTSC企业版 19044.2311_2022.12.13.rar
(6.93 KB, 下载次数: 19)
|
|