Disable LAN sharing. cmd
CopyCode The Code is as follows: @ echo off
@ Echo.
@ Echo. Description
@ Echo ----------------------------------------------------------
@ Echo after this batch is executed, the following settings will be made:
@ Echo 1. Do not allow anonymous enumeration of SAM accounts and shares (the original system allows anonymous enumeration by default ).
@ Echo 2. If the password is blank for the local account, access to the local machine from other hosts is not allowed.
@ Echo 3. Windows Firewall: file and printer sharing are not allowed.
@ Echo 4. Guest Account: Disabled.
@ Echo.
@ Echo if you do not need to transfer files in the LAN, you can disable the sharing function to improve
@ Echo security. Sharing should be disabled, especially for single-host dial-up users.
@ Echo ----------------------------------------------------------
Pause
Regedit/s disable LAN sharing. Reg
Net user guest/active: No
CLS
@ Echo.
@ Echo ----------------------------------------------------------
@ Echo operation completed.
@ ECHO does not need to be restarted. The setting takes effect.
@ Echo ----------------------------------------------------------
Pause
Prepared by ghostxp_sp2 computer company special edition.
Disable LAN sharing. RegCopy codeThe Code is as follows: Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE \ SYSTEM \ controlset001 \ Control \ LSA]
"Restrictanonymous" = DWORD: 00000001
[HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Control \ LSA]
"Restrictanonymous" = DWORD: 00000001
The above two rows are in the system: Local Security Policy-Security Options-Network Access: do not allow SAM accounts and sharing
. The default value is disabled.
Explanation: by default, the operating system uses the IPC $ channel to establish an empty connection and anonymously identifies the number of accounts on the machine. Apparently
Has certain security risks. The system has been set to not allow empty connections. This improves the security of Single-host dial-up access.
The negative impact is that the LAN cannot communicate with each other. You need to change it to solve the problem.
[HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Control \ LSA]
"Limitblankpassworduse" = DWORD: 00000001
[HKEY_LOCAL_MACHINE \ SYSTEM \ controlset001 \ Control \ LSA]
"Limitblankpassworduse" = DWORD: 00000001
The location of the above two lines in the system is: Local Security Policy-Security Options-account: A local account with a blank password
; Only console logon is allowed. The default value is enabled.
Explanation: many people do not add a password to their accounts. In this way, when other computers in the LAN access the local machine, an error message is displayed:
; Logon Failed: User Account limit .......... This is caused by a security policy of the Windows XP system.
Enter your computer. If you don't think it's okay and you don't have to make these restrictions, set it to disabled.
[HKEY_CURRENT_USER \ Software \ Microsoft \ Windows \ CurrentVersion \ Explorer \ userassist \ {750000000-ef1f-11d0-9888-006097deacf9} \ count]
"Hrzr_ehapcy" = HEX: 0C, 00,00, 00, 2a, 00,00, 00,90, AF, A4, 87, A4, 95, C6, 01
"Hrzr_ehapcy:" P: \ jvaqbjf \ flfgrz32 \ sverjnyy. PCY ", jvaqbjf firewall" = HEX: 0C, 00,00, 00,13, 00,00, 00,90, AF, A4, 87, A4, 95, C6, 01
[HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Cryptography \ RNG]
"Seed" = HEX: AC, 6f, 9A, 2B, 11,64, 44,68, EC, 90, 1b, 76,72, A7, 0a, 14 ,\
4c, 79,37, BB, FD, BD, 70, B2, B2, 58, D5, B5, 89, 5C, B6, 4E ,\
3b, 18, A5, 26,46, BC, 3e, 6a, 30, A4, 7d, A0, 56, E6, 6a, B5 ,\
57, 3A, BF, A1, CD, CA, B6, 64, 4C, F9, 0e, D2, 64, Ed, 86, 1f ,\
61, F6, D1, 01, 0b, 7C, 8D, BD, C8, 4E, 57,93, 4E, 90
[HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Services \ sharedaccess \ Parameters \ firewallpolicy \ standardprofile \ globallyopenports \ list]
"445: TCP" = "445: TCP: localsubnet: Disabled: @ xpsp2res. dll,-22005"
"137: UDP" = "137: UDP: localsubnet: Disabled: @ xpsp2res. dll,-22001"
"138: UDP" = "138: UDP: localsubnet: Disabled: @ xpsp2res. dll,-22002"
"139: TCP" = "139: TCP: localsubnet: Disabled: @ xpsp2res. dll,-22004"
[HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Services \ sharedaccess \ epoch]
"Epoch" = DWORD: 000001fc
[HKEY_LOCAL_MACHINE \ SYSTEM \ controlset001 \ Services \ sharedaccess \ Parameters \ firewallpolicy \ standardprofile \ globallyopenports \ list]
"445: TCP" = "445: TCP: localsubnet: Disabled: @ xpsp2res. dll,-22005"
"137: UDP" = "137: UDP: localsubnet: Disabled: @ xpsp2res. dll,-22001"
"138: UDP" = "138: UDP: localsubnet: Disabled: @ xpsp2res. dll,-22002"
"139: TCP" = "139: TCP: localsubnet: Disabled: @ xpsp2res. dll,-22004"
[HKEY_LOCAL_MACHINE \ SYSTEM \ controlset001 \ Services \ sharedaccess \ epoch]
"Epoch" = DWORD: 000001fc
The above value corresponds to the location in the system: control panel -- firewall -- exception -- file and printer sharing. Default Value: No.
Explanation: All policies are set and the LAN is still inaccessible. The prompt is: You do not have permission to use network resources.
; The network path is not found! Oh, it's really amazing! In fact, XP also has a level, that is, firewall, which must pass through
.
Written by ghostxp_sp2 computer company special edition. Thank you for your use.