Windows Server Security batch processing file
This is indeed good, it refers to the amount of settings, eliminating the hassle of manual settings/uploadfiles/okay_77574.rar
Copy codeThe Code is as follows: echo.
Echo ------------------------------------------------------
Echo.
Echo ...........
Echo.
Net share c $/delete
Net share d $/delete
Net share e $/delete
Net share f $/delete
Net share admin $/delete
Net share ipc $/delete
Net stop server
Net stop lanmanworkstation
Regsvr32/u C: \ WINNT \ System32 \ wshom. ocx
Regsvr32/u C: \ WINNT \ system32 \ shell32.dll
Regsvr32/u C: \ WINNT \ system32 \ shell. dll
Cacls c: \ WINNT \ system32 \ shell32.dll/g administrators: f system: f
Cacls c: \ WINNT \ system32 \ shell. dll/g administrators: f system: f
Cacls c: \/g administrators: f system: f
Cacls d: \/g administrators: f system: f
Echo.
Echo ..........
Echo.
Echo ------------------------------------------------------
Echo.
Echo .................
Echo.
Echo... delshare. reg .......
Echo Windows Registry Editor Version 5.00> c: \ delshare. reg
Echo [HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Services \ lanmanserver \ parameters]> c: \ delshare. reg
Echo "AutoShareWks" = dword: 00000000> c: \ delshare. reg
Echo "AutoShareServer" = dword: 00000000> c: \ delshare. reg
Echo... delshare. reg .....
Regedit/s c: \ delshare. reg
Echo... delshare. reg ....
Del c: \ delshare. reg
Echo.
Echo ........
Echo.
Echo ===================================================== ============================
Echo.
Echo ........................ dos ....
Echo.
Echo .........
Echo Windows Registry Editor Version 5.00> c: \ dosforwin. reg
Echo [HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Services \ Tcpip \ Parameters]> c: \ dosforwin. reg
Echo "EnableICMPRedirect" = dword: 00000000> c: \ dosforwin. reg
Echo "DeadGWDetectDefault" = dword: 00000001> c: \ dosforwin. reg
Echo "dontadddefagategatewaydefault" = dword: 00000000> c: \ dosforwin. reg
Echo "EnableSecurityFilters" = dword: 00000000 "> c: \ dosforwin. reg
Echo "AllowUnqualifiedQuery" = dword: 00000000> c: \ dosforwin. reg
Echo "PrioritizeRecordData" = dword: 00000001> c: \ dosforwin. reg
Echo "ReservedPorts" = hex (7): 31,00, 34,00, 33,00, 33,00, 2d, 33, 00, \> c: \ dosforwin. reg
Echo,> c: \ dosforwin. reg
Echo "SynAttackProtect" = dword: 00000002> c: \ dosforwin. reg
Echo "EnablePMTUDiscovery" = dword: 00000000> c: \ dosforwin. reg
Echo "NoNameReleaseOnDemand" = dword: 00000001> c: \ dosforwin. reg
Echo "EnableDeadGWDetect" = dword: 00000000> c: \ dosforwin. reg
Echo "maid" = dword: 00300000> c: \ dosforwin. reg
Echo "initialize mrouterdiscovery" = dword: 00000000> c: \ dosforwin. reg
Echo "EnableICMPRedirects" = dword: 00000000> c: \ dosforwin. reg
Echo.
Echo ===================================================== ==============================
Echo... dosforwin. reg .....
Regedit/s c: \ dosforwin. reg
Echo... dosforwin. reg ....
Del c: \ dosforwin. reg
Echo ===================================================== ======================================
Echo.
Echo ..........(......................).
Echo.
Echo... telnet,... telnet.
Echo ..........
Echo Windows Registry Editor Version 5.00> c: \ telnet. reg
Echo [HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Services \ TlntSvr]> c: \ telnet. reg
Echo "Start" = dword: 00000004> c: \ telnet. reg
Echo.
Echo... telnet. reg .....
Regedit/s c: \ telnet. reg
Echo.
Echo... telnet. reg ....
Del c: \ telnet. reg
Echo.
Echo ===================================================== ======================================
Echo... Remote Registry Service ...........
Echo .........
Echo.
Echo Windows Registry Editor Version 5.00> c: \ regedit. reg
Echo [HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Services \ RemoteRegistry]> c: \ regedit. reg
Echo "Start" = dword: 00000004> c: \ regedit. reg
Echo.
Echo... regedit. reg .....
Regedit/s c: \ regedit. reg
Echo.
Echo ......
Del c: \ regedit. reg
Echo ===================================================== ======================================
Echo... Messenger .......
Echo .........
Echo Windows Registry Editor Version 5.00> c: \ message. reg
Echo [HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Services \ Messenger]> c: \ message. reg
Echo "Start" = dword: 00000004> c: \ message. reg
Echo.
Echo... message. reg .....
Regedit/s c: \ message. reg
Echo.
Echo .. message. reg
Del c: \ message. reg
Echo ===================================================== ======================================
Echo... lanmanworkstation .......
Echo .........
Echo Windows Registry Editor Version 5.00> c: \ lanmanworkstation. reg
Echo [HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Services \ lanmanworkstation]> c: \ lanmanworkstation. reg
Echo "Start" = dword: 00000004> c: \ lanmanworkstation. reg
Echo.
Echo... lanmanworkstation. reg .....
Regedit/s c: \ lanmanworkstation. reg
Echo.
Echo .. lanmanworkstation. reg
Del c: \ lanmanworkstation. reg
Echo ===================================================== ======================================
Echo... lanmanserver .......
Echo .........
Echo Windows Registry Editor Version 5.00> c: \ lanmanserver. reg
Echo [HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Services \ lanmanserver]> c: \ lanmanserver. reg
Echo "Start" = dword: 00000004> c: \ lanmanserver. reg
Echo.
Echo... lanmanserver. reg .....
Regedit/s c: \ lanmanserver. reg
Echo.
Echo .. lanmanserver. reg
Del c: \ lanmanserver. reg
Echo ===================================================== ======================================
Echo... Alerter .......
Echo .........
Echo Windows Registry Editor Version 5.00> c: \ Alerter. reg
Echo [HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Services \ Alerter]> c: \ Alerter. reg
Echo "Start" = dword: 00000004> c: \ Alerter. reg
Echo.
Echo... Alerter. reg .....
Regedit/s c: \ Alerter. reg
Echo.
Echo .. Alerter. reg
Del c: \ Alerter. reg
Echo ===================================================== ======================================
Echo... Browser .......
Echo .........
Echo Windows Registry Editor Version 5.00> c: \ Browser. reg
Echo [HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Services \ Browser]> c: \ Browser. reg
Echo "Start" = dword: 00000004> c: \ Browser. reg
Echo.
Echo... Browser. reg .....
Regedit/s c: \ Browser. reg
Echo.
Echo.. Browser. reg
Del c: \ Browser. reg
Echo ===================================================== ======================================
Echo... Dfs .......
Echo .........
Echo Windows Registry Editor Version 5.00> c: \ Dfs. reg
Echo [HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Services \ Dfs]> c: \ Dfs. reg
Echo "Start" = dword: 00000004> c: \ Dfs. reg
Echo.
Echo... Dfs. reg .....
Regedit/s c: \ Dfs. reg
Echo.
Echo .. Dfs. reg
Del c: \ Dfs. reg
Echo ===================================================== ======================================
Echo... Spooler .......
Echo .........
Echo Windows Registry Editor Version 5.00> c: \ Spooler. reg
Echo [HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Services \ Spooler]> c: \ Spooler. reg
Echo "Start" = dword: 00000004> c: \ Spooler. reg
Echo.
Echo... Spooler. reg .....
Regedit/s c: \ Spooler. reg
Echo.
Echo .. Spooler. reg
Del c: \ Spooler. reg
Echo ===================================================== ======================================
Echo... TCP/IP NetBIOS Helper Service
Echo .........
Echo Windows Registry Editor Version 5.00> c: \ netbios. reg
Echo [HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Services \ LmHosts]> c: \ netbios. reg
Echo "Start" = dword: 00000004> c: \ netbios. reg
Echo.
Echo... netbios. reg .....
Regedit/s c: \ netbios. reg
Echo.
Echo.. netbios. reg
Del c: \ netbios. reg
Echo ===================================================== ======================================
Echo ===================================================== ======================================
Echo powered by zgsj.com
Echo web@zgsj.com
Goto: END