Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to open local area network sharing using registry and batch processing

2025-01-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

This article mainly introduces how to use the registry and batch processing to open local area network sharing, the article is very detailed, has a certain reference value, interested friends must read it!

Activate local area network sharing (enter user name and password to access this computer). Cmd

The code is as follows:

@ ECHO OFF

@ ECHO.

@ ECHO. State clearly

@ ECHO-

@ ECHO after the execution of this batch, the following settings will be made:

@ ECHO 1, allows anonymous enumeration of SAM accounts and shares (allowed by the original system, which is disabled by default).

@ ECHO 2. If the local account has an empty password, allow other computers to access the machine.

@ ECHO 3, Windows Firewall: allow file and printer sharing.

@ ECHO 4. Sharing method: local users authenticate with their own identity.

@ ECHO 5, Guest account: not enabled.

@ ECHO-

@ ECHO.

@ ECHO uses this sharing method, and you must enter the correct user name and password to access the computer.

@ ECHO.

@ ECHO no matter which sharing method is used, sharing is only convenient for internal use, when using a router to access the Internet

The public network of @ ECHO cannot access your computer, so there is no need to worry that sharing will be compromised. You just need to remember that dialing on a single machine

When @ ECHO goes online, just don't turn on sharing.

@ ECHO-

@ ECHO.

PAUSE

Regedit / s opens local area network sharing (user name and password are required to access this computer). Reg

Net user Guest / active:no

Cls

@ ECHO.

@ ECHO-

The @ ECHO operation is complete.

@ ECHO does not need to be rebooted, other computers can now access the local computer.

@ ECHO.

The default sharing of the partitions of the @ ECHO hard disk is still not turned on. If you need to open it

@ ECHO Please go to this directory to find the registry file and double-click to import.

@ ECHO-

@ ECHO.

@ ECHO FAQ:

@ ECHO, after the above processing, visit the local computer. If you still enter directly, you will not be prompted to enter the account.

@ ECHO number and password dialog box, that is because the account names of other computers are the same as the local account names (for example, double

@ ECHO is all administrator), and the machine does not have a password. You should rename your local account or add a password.

@ ECHO allows unauthorized users to access your shared resources at will.

@ ECHO-

PAUSE

Edited by the author of the Special Edition of GhostXP_SP2 computer Company.

Activate local area network sharing (enter user name and password to access this computer). Reg

The 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 location of the above two lines in the system is: local Security Policy-Security options-Network access: SAM account and sharing are not allowed

Anonymous enumeration of; The system default value is: disabled.

; explanation: operating system default: an empty connection can be established using the ipc$ channel. Enumerate the number of accounts on the machine anonymously. Obviously

There are certain security risks. This system has been set to not allow empty connections. In order to improve the security of dial-up Internet access on a single machine.

The negative effect is that the local area network can no longer exchange visits. It needs to be changed before it can be solved.

[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-accounts: local accounts with blank passwords

Only console logins are allowed. The system default value is: enabled.

; explanation: many people's accounts do not have a password. In this way, when another computer in the LAN accesses the local computer, an error message will pop up:

Login failure: user account restrictions. This is caused by a security policy of the XP system to prevent others from taking advantage of your empty password

Access to your computer. If you think it doesn't matter that you don't have to make these restrictions, set it to: disabled.

[HKEY_CURRENT_USER\ Software\ Microsoft\ Windows\ CurrentVersion\ Explorer\ UserAssist\ {75048700-EF1F-11D0-9888-006097DEACF9}\ Count]

"HRZR_EHAPCY" = hex:0C,00,00,00,26,00,00,00,F0,FB,E5,52,64,95,C6,01

"HRZR_EHAPCY:" P:\ JVAQBJF\ flfgrz32\ sverjnyy.pcy ", Jvaqbjf Firewall" = hex:0C,00,00,00,08,00,00,00,F0,FB,E5,52,64,95,C6,01

[HKEY_LOCAL_MACHINE\ SYSTEM\ CurrentControlSet\ Services\ SharedAccess\ Parameters\ FirewallPolicy\ StandardProfile\ GloballyOpenPorts\ List]

"445:TCP" = "445 rider TCPV LocalSubNetblol EnabledRose xpsp2res.dlljinghong 22005"

"137:UDP" = "137VDP VDP LocalSubNetRose EnabledVOBLEDUDLJING 22001"

"138:UDP" = "138 UDP virtual localSubnet lavage EnabledVuituxpsp2res.dlljung Murray 22002"

"139:TCP" = "139PSP2res.dlljinji 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 rider TCPV LocalSubNetblol EnabledRose xpsp2res.dlljinghong 22005"

"137:UDP" = "137VDP VDP LocalSubNetRose EnabledVOBLEDUDLJING 22001"

"138:UDP" = "138 UDP virtual localSubnet lavage EnabledVuituxpsp2res.dlljung Murray 22002"

"139:TCP" = "139PSP2res.dlljinji 22004"

[HKEY_LOCAL_MACHINE\ SYSTEM\ ControlSet001\ Services\ SharedAccess\ Epoch]

"Epoch" = dword:000001ED

The above values correspond to the location in the system: control panel-firewall-exception-file and printer sharing. System default: not selected.

; explanation: all the policies have been set, the local area network is still inaccessible, hint: you do not have permission to use network resources, find

; do not reach the network path! Oh, it's really infuriating! In fact, XP also has another hurdle, that is, the firewall, which must be passed through.

Only with the permission of the firewall

[HKEY_LOCAL_MACHINE\ SYSTEM\ CurrentControlSet\ Control\ Lsa]

"forceguest" = dword:00000000

The locations of the above values in the system are: control Panel-Management tools-Local Security Policy-Local Policy-Security options

Network access: sharing and security mode of local accounts: classic-local users authenticate with their own identity. At this time, when the LAN

When other computers access the local computer, a dialog box pops up, and the correct user name and password of the local computer are required to allow access. In this way

It is safe. Recommended.

The above is all the contents of the article "how to use the registry and batch processing to open local area network sharing". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report