In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article is about how to use bat to open local area network sharing. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.
Open local area network sharing (access to this computer can be accessed without authentication). 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: guest authentication for local users.
@ ECHO 5, Guest account: enabled.
@ ECHO-
@ ECHO.
@ ECHO uses this sharing method, and other computers do not have to enter a user name and password to access the local computer. For example, the family
@ ECHO LAN, you can trust each other, please use this way.
@ 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 (access to this computer can be accessed without authentication). Reg
Net user Guest / active:yes
Cls
@ ECHO.
@ ECHO-
The @ ECHO operation is complete.
@ ECHO Note: this machine will not take effect until it is rebooted.
@ 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 knotty questions add:
@ ECHO shared a folder if the previous sharing method was "Local users authenticate themselves"
@ ECHO is now changed to access the folder after guest authentication, and an error will pop up: "unable to access, you
@ ECHO does not have permission to use network resources. "the solution is to cancel the original share on the folder properties, but
@ ECHO and then share it again, and that's fine.
@ ECHO-
PAUSE
Edited by the author of the Special Edition of GhostXP_SP2 computer Company.
Open local area network sharing (access to this computer can be accessed without authentication). 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:00000001
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: guest only-local users since guest authentication. At this time, when the LAN
When other computers visit this machine, they can enter directly without popping up a dialog box. In fully trustworthy areas such as the home network
; it is recommended to use this method.
Thank you for reading! This is the end of the article on "how to use bat to open local area network sharing". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it out for more people to see!
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.