Enable local area network sharing (enter the user name and password to access the local host) registry and Batch Processing

Source: Internet
Author: User

Enable LAN sharing (enter the user name and password to access this host). 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: allows anonymous enumeration of SAM accounts and shares (the original system allows anonymous enumeration, Which is disabled by default ).
@ Echo 2. If the password is blank for the local account, allow other machines to access the local account.
@ Echo 3. Windows Firewall: allows file and printer sharing.
@ Echo 4. Sharing Mode: the local user authenticates with his/her own identity.
@ Echo 5. Guest Account: Disabled.
@ Echo --------------------------------------------------------------------
@ Echo.
@ Echo adopts this sharing method. when accessing the local machine, you must enter the correct user name and password.
@ Echo.
@ Echo no matter which sharing method is used, sharing is only convenient for internal use. When using a router to access the Internet,
@ Echo the Internet cannot access your machine, so you don't have to worry about sharing and it will be compromised. Remember, single-host dialing
@ ECHO: do not enable sharing when surfing the Internet.
@ Echo --------------------------------------------------------------------
@ Echo.
Pause
Regedit/s enable LAN sharing (enter the user name and password to access this host). Reg
Net user guest/active: No
CLS
@ Echo.
@ Echo -------------------------------------------------------------------
@ Echo operation completed.
@ ECHO does not need to be restarted. Other hosts can now access the local machine.
@ Echo.
@ Echo the default share of each disk partition is not enabled. To enable this function,
@ Echo go to the local directory, find the Registry file, and double-click Import.
@ Echo -------------------------------------------------------------------
@ Echo.
@ Echo FAQ:
@ Echo after the above processing, access the local machine, if it is still directly in, there is no prompt to enter the account
@ Echo and Password dialog box, because the account names of other computers are the same as those of local accounts (such
@ ECHO is administrator), and the local machine has no password. You should rename your local account or add a password.
@ ECHO: unauthorized users cannot access your shared resources at will.
@ Echo -------------------------------------------------------------------
Pause

Prepared by ghostxp_sp2 computer company special edition.

Enable LAN sharing (enter the user name and password to access this host). RegCopy codeThe Code is as follows: Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE \ SYSTEM \ controlset001 \ Control \ LSA]
"Restrictanonymous" = DWORD: 00000000

[HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Control \ LSA]
"Restrictanonymous" = DWORD: 00000000
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: 00000000

[HKEY_LOCAL_MACHINE \ SYSTEM \ controlset001 \ Control \ LSA]
"Limitblankpassworduse" = DWORD: 00000000
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, 26, 00, 00, F0, FB, E5, 95, C6, 01
"Hrzr_ehapcy:" P: \ jvaqbjf \ flfgrz32 \ sverjnyy. PCY ", jvaqbjf firewall" = HEX: 0C, 08, 00, F0, FB, E5, 95, C6, 01

[HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Services \ sharedaccess \ Parameters \ firewallpolicy \ standardprofile \ globallyopenports \ list]
"445: TCP" = "445: TCP: localsubnet: enabled: @ xpsp2res. dll,-22005"
"137: UDP" = "137: UDP: localsubnet: enabled: @ xpsp2res. dll,-22001"
"138: UDP" = "138: UDP: localsubnet: enabled: @ xpsp2res. dll,-22002"
"139: TCP" = "139: TCP: localsubnet: enabled: @ xpsp2res. dll,-22004"

[HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Services \ sharedaccess \ epoch]
"Epoch" = DWORD: 000001ed

[HKEY_LOCAL_MACHINE \ SYSTEM \ controlset001 \ Control \ Print \ providers]
"Logontime" = HEX: E8, 31, 8e, 4f, 64,95, C6, 01

[HKEY_LOCAL_MACHINE \ SYSTEM \ controlset001 \ Services \ sharedaccess \ Parameters \ firewallpolicy \ standardprofile \ globallyopenports \ list]
"445: TCP" = "445: TCP: localsubnet: enabled: @ xpsp2res. dll,-22005"
"137: UDP" = "137: UDP: localsubnet: enabled: @ xpsp2res. dll,-22001"
"138: UDP" = "138: UDP: localsubnet: enabled: @ xpsp2res. dll,-22002"
"139: TCP" = "139: TCP: localsubnet: enabled: @ xpsp2res. dll,-22004"

[HKEY_LOCAL_MACHINE \ SYSTEM \ controlset001 \ Services \ sharedaccess \ epoch]
"Epoch" = DWORD: 000001ed
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
.

[HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Control \ LSA]
"Forceguest" = DWORD: 00000000
The above values correspond to the positions in the system: control panel -- Management Tools -- local security policies -- local policies -- Security Options,
; Network Access: shared and secure mode for Local Accounts: Classic-Local Users are authenticated by themselves. At this time, when the LAN
When other hosts access the local machine, a dialog box is displayed. You must enter the correct user name and password for access. This method
; Is safe. Recommended.

; prepared by ghostxp_sp2 computer company special edition. Thank you for your use.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.