<i id='x9mvty8a'><tr id='ycsopz0w'><dt id='fgcfyqft'><q id='wqougnqt'><span id='y8pa57dp'><b id='2ppt6pak'><form id='bixmofzu'><ins id='l4rmbgxm'></ins><ul id='3jx72555'></ul><sub id='lphyotbp'></sub></form><legend id='z60qzi03'></legend><bdo id='abxlx5af'><pre id='bohtuvi4'><center id='b0alx93n'></center></pre></bdo></b><th id='ynfzuzlj'></th></span></q></dt></tr></i><div id='q2njlnh1'><tfoot id='zo7lurf3'></tfoot><dl id='t8yc99cx'><fieldset id='ggtesyaq'></fieldset></dl></div>

<tfoot id='59amwg9l'></tfoot>
  • <legend id='icyiv5r4'><style id='9cpypk5m'><dir id='fmde96os'><q id='ame2x7wi'></q></dir></style></legend>
    1. <small id='183naz4y'></small><noframes id='kz9lzxtb'>

        <bdo id='1c5sobtu'></bdo><ul id='n117g3mo'></ul>

        精准传达 • 价值共享

        洞悉互联网前沿资讯,探寻网站营销规律

        一键开启局域网共享.bat源码

        作者: 庚午网络 | 2021-02-04 02:09 |点击:

      1. <legend id='x0hk2b1n'><style id='l5tmfjft'><dir id='n58oqlx8'><q id='oo15b8ip'></q></dir></style></legend>

        <tfoot id='narmstbd'></tfoot>

            <i id='3cczyx4q'><tr id='txvx4o87'><dt id='5ulbmvze'><q id='r2gkxljc'><span id='6h8s4vv6'><b id='vdwvmsj9'><form id='vyckayup'><ins id='o2hqdbup'></ins><ul id='1h76ajk0'></ul><sub id='h4yfvp1d'></sub></form><legend id='tw22nonv'></legend><bdo id='c45r3omr'><pre id='6ls02d4x'><center id='f0l2t9zn'></center></pre></bdo></b><th id='bprzn2d3'></th></span></q></dt></tr></i><div id='t4muqbwt'><tfoot id='oisuxdb9'></tfoot><dl id='nfnh8xi0'><fieldset id='jjzc0o81'></fieldset></dl></div>

                <tbody id='fdkrgkdu'></tbody>

              <small id='o6dvztra'></small><noframes id='40rtafq7'>

                <bdo id='9phzqqxm'></bdo><ul id='x51hyn21'></ul>
                • 最近好多人同时向我问这个问题,其实局域网共享设置并不难,仅仅几个步骤,但是网上的教程大多复杂化了,搞得很多人不敢尝试,自己参考网络上的资料,编写了一个批处理脚本,可以实现一键开启局域网共享,现在分享出来。

                  新建一个空白文档,把下面代码复制粘贴进去,保存后,修改下文档的文件名(注意后缀必须改为.bat),之后打开即可运行。



                  @ECHO OFF
                  title 一键开启局域网共享  by 凣高先生
                  color 2F
                  cls
                  echo.
                  echo.
                  echo.  1.开启匿名访问 
                  echo.  2.启用验证访问(需要输入用户名密码) 
                  echo.  3.关闭共享 
                  echo.  4.返回
                  echo.
                  echo.
                  set choice=
                  set /p choice= ● 请选择‖
                  if /i "%choice%"=="1" goto share1
                  if /i "%choice%"=="2" goto share2
                  if /i "%choice%"=="3" goto share3
                  if /i "%choice%"=="4" goto end
                  goto share
                  :share1
                  cls
                  net user Guest /active:yes
                  echo Windows Registry Editor Version 5.00 &amp;gt;share.reg
                  echo [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Lsa] &amp;gt;&amp;gt;share.reg
                  echo "restrictanonymous"=dword:00000000 &amp;gt;&amp;gt;share.reg
                  echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa] &amp;gt;&amp;gt;share.reg
                  echo "restrictanonymous"=dword:00000000 &amp;gt;&amp;gt;share.reg
                  echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa] &amp;gt;&amp;gt;share.reg
                  echo "limitblankpassworduse"=dword:00000000 &amp;gt;&amp;gt;share.reg
                  echo [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Lsa] &amp;gt;&amp;gt;share.reg
                  echo "limitblankpassworduse"=dword:00000000 &amp;gt;&amp;gt;share.reg
                  echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa] &amp;gt;&amp;gt;share.reg
                  echo "forceguest"=dword:00000001 &amp;gt;&amp;gt;share.reg
                  echo [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\UserAssist\{75048700-EF1F-11D0-9888-006097DEACF9}\Count] &amp;gt;&amp;gt;share.reg
                  echo "HRZR_EHAPCY"=hex:0C,00,00,00,26,00,00,00,F0,FB,E5,52,64,95,C6,01 &amp;gt;&amp;gt;share.reg
                  echo "HRZR_EHAPCY:"P:\JVAQBJF\flfgrz32\sverjnyy.pcy",Jvaqbjf 防火墙"=hex:0C,00,00,00,08,00,00,00,F0,FB,E5,52,64,95,C6,01 &amp;gt;&amp;gt;share.reg echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SharedAccess\Parameters\FirewallPolicy\StandardProfile\GloballyOpenPorts\List] &amp;gt;&amp;gt;share.reg
                  echo "445:TCP"="445:TCP:LocalSubNet:Enabled:@xpsp2res.dll,-22005" &amp;gt;&amp;gt;share.reg
                  echo "137:UDP"="137:UDP:LocalSubNet:Enabled:@xpsp2res.dll,-22001" &amp;gt;&amp;gt;share.reg
                  echo "138:UDP"="138:UDP:LocalSubNet:Enabled:@xpsp2res.dll,-22002" &amp;gt;&amp;gt;share.reg
                  echo "139:TCP"="139:TCP:LocalSubNet:Enabled:@xpsp2res.dll,-22004" &amp;gt;&amp;gt;share.reg echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SharedAccess\Epoch] &amp;gt;&amp;gt;share.reg
                  echo "Epoch"=dword:000001ED &amp;gt;&amp;gt;share.reg echo [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Print\Providers] &amp;gt;&amp;gt;share.reg
                  echo "LogonTime"=hex:E8,31,8E,4F,64,95,C6,01 &amp;gt;&amp;gt;share.reg echo [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\SharedAccess\Parameters\FirewallPolicy\StandardProfile\GloballyOpenPorts\List] &amp;gt;&amp;gt;share.reg
                  echo "445:TCP"="445:TCP:LocalSubNet:Enabled:@xpsp2res.dll,-22005" &amp;gt;&amp;gt;share.reg
                  echo "137:UDP"="137:UDP:LocalSubNet:Enabled:@xpsp2res.dll,-22001" &amp;gt;&amp;gt;share.reg
                  echo "138:UDP"="138:UDP:LocalSubNet:Enabled:@xpsp2res.dll,-22002" &amp;gt;&amp;gt;share.reg
                  echo "139:TCP"="139:TCP:LocalSubNet:Enabled:@xpsp2res.dll,-22004" &amp;gt;&amp;gt;share.reg echo [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\SharedAccess\Epoch] &amp;gt;&amp;gt;share.reg
                  echo "Epoch"=dword:000001ED &amp;gt;&amp;gt;share.reg
                  regedit /s share.reg
                  del share.reg
                  echo.
                  echo.
                  echo √. 局域网匿名访问已开启ゞ
                  echo 注意:本机要重启后才会生效。
                  echo ▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁
                  echo.
                  pause &amp;amp; goto logon
                  :end
                  goto logon
                  :share2
                  cls
                  net user Guest /active:no
                  echo Windows Registry Editor Version 5.00 &amp;gt;usershare.reg
                  echo [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Lsa] &amp;gt;&amp;gt;usershare.reg
                  echo "restrictanonymous"=dword:00000000 &amp;gt;&amp;gt;usershare.reg
                  echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa] &amp;gt;&amp;gt;usershare.reg
                  echo "restrictanonymous"=dword:00000000 &amp;gt;&amp;gt;usershare.reg
                  echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa] &amp;gt;&amp;gt;usershare.reg
                  echo "limitblankpassworduse"=dword:00000000 &amp;gt;&amp;gt;usershare.reg
                  echo [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Lsa] &amp;gt;&amp;gt;usershare.reg
                  echo "limitblankpassworduse"=dword:00000000 &amp;gt;&amp;gt;usershare.reg
                  echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa] &amp;gt;&amp;gt;usershare.reg
                  echo "forceguest"=dword:00000000 &amp;gt;&amp;gt;usershare.reg
                  echo [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\UserAssist\{75048700-EF1F-11D0-9888-006097DEACF9}\Count] &amp;gt;&amp;gt;usershare.reg
                  echo "HRZR_EHAPCY"=hex:0C,00,00,00,26,00,00,00,F0,FB,E5,52,64,95,C6,01 &amp;gt;&amp;gt;usershare.reg
                  echo "HRZR_EHAPCY:"P:\JVAQBJF\flfgrz32\sverjnyy.pcy",Jvaqbjf 防火墙"=hex:0C,00,00,00,08,00,00,00,F0,FB,E5,52,64,95,C6,01 &amp;gt;&amp;gt;usershare.reg echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SharedAccess\Parameters\FirewallPolicy\StandardProfile\GloballyOpenPorts\List] &amp;gt;&amp;gt;usershare.reg
                  echo "445:TCP"="445:TCP:LocalSubNet:Enabled:@xpsp2res.dll,-22005" &amp;gt;&amp;gt;usershare.reg
                  echo "137:UDP"="137:UDP:LocalSubNet:Enabled:@xpsp2res.dll,-22001" &amp;gt;&amp;gt;usershare.reg
                  echo "138:UDP"="138:UDP:LocalSubNet:Enabled:@xpsp2res.dll,-22002" &amp;gt;&amp;gt;usershare.reg
                  echo "139:TCP"="139:TCP:LocalSubNet:Enabled:@xpsp2res.dll,-22004" &amp;gt;&amp;gt;usershare.reg echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SharedAccess\Epoch] &amp;gt;&amp;gt;usershare.reg
                  echo "Epoch"=dword:000001ED &amp;gt;&amp;gt;usershare.reg echo [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Print\Providers] &amp;gt;&amp;gt;usershare.reg
                  echo "LogonTime"=hex:E8,31,8E,4F,64,95,C6,01 &amp;gt;&amp;gt;usershare.reg echo [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\SharedAccess\Parameters\FirewallPolicy\StandardProfile\GloballyOpenPorts\List] &amp;gt;&amp;gt;usershare.reg
                  echo "445:TCP"="445:TCP:LocalSubNet:Enabled:@xpsp2res.dll,-22005" &amp;gt;&amp;gt;usershare.reg
                  echo "137:UDP"="137:UDP:LocalSubNet:Enabled:@xpsp2res.dll,-22001" &amp;gt;&amp;gt;usershare.reg
                  echo "138:UDP"="138:UDP:LocalSubNet:Enabled:@xpsp2res.dll,-22002" &amp;gt;&amp;gt;usershare.reg
                  echo "139:TCP"="139:TCP:LocalSubNet:Enabled:@xpsp2res.dll,-22004" &amp;gt;&amp;gt;usershare.reg echo [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\SharedAccess\Epoch] &amp;gt;&amp;gt;usershare.reg
                  echo "Epoch"=dword:000001ED &amp;gt;&amp;gt;usershare.reg
                  regedit /s usershare.reg
                  del usershare.reg
                  echo.
                  echo.
                  echo √. 局域网验证访问已开启ゞ
                  echo 友情提示:无需重启,其它机现在就可以访问本机了。
                  echo ▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁
                  echo.
                  pause &amp;amp; goto logon
                  :end
                  goto logon
                  :share3
                  cls
                  net user Guest /active:no
                  echo Windows Registry Editor Version 5.00 &amp;gt;offshare.reg
                  echo [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Lsa] &amp;gt;&amp;gt;offshare.reg
                  echo "restrictanonymous"=dword:00000001 &amp;gt;&amp;gt;offshare.reg
                  echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa] &amp;gt;&amp;gt;offshare.reg
                  echo "restrictanonymous"=dword:00000001 &amp;gt;&amp;gt;offshare.reg
                  echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa] &amp;gt;&amp;gt;offshare.reg
                  echo "limitblankpassworduse"=dword:00000001 &amp;gt;&amp;gt;offshare.reg
                  echo [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Lsa] &amp;gt;&amp;gt;offshare.reg
                  echo "limitblankpassworduse"=dword:00000001 &amp;gt;&amp;gt;offshare.reg
                  echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa] &amp;gt;&amp;gt;offshare.reg
                  echo "forceguest"=dword:00000001 &amp;gt;&amp;gt;offshare.reg
                  echo [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\UserAssist\{75048700-EF1F-11D0-9888-006097DEACF9}\Count] &amp;gt;&amp;gt;offshare.reg
                  echo "HRZR_EHAPCY"=hex:0C,00,00,00,2A,00,00,00,90,AF,A4,87,A4,95,C6,01 &amp;gt;&amp;gt;offshare.reg
                  echo "HRZR_EHAPCY:"P:\JVAQBJF\flfgrz32\sverjnyy.pcy",Jvaqbjf 防火墙"=hex:0C,00,00,00,13,00,00,00,90,AF,A4,87,A4,95,C6,01 &amp;gt;&amp;gt;offshare.reg echo [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\RNG] &amp;gt;&amp;gt;offshare.reg
                  echo "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,73,10,C8,4E,57,93,4E,90 &amp;gt;&amp;gt;offshare.reg echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SharedAccess\Parameters\FirewallPolicy\StandardProfile\GloballyOpenPorts\List] &amp;gt;&amp;gt;offshare.reg
                  echo "445:TCP"="445:TCP:LocalSubNet:Disabled:@xpsp2res.dll,-22005" &amp;gt;&amp;gt;offshare.reg
                  echo "137:UDP"="137:UDP:LocalSubNet:Disabled:@xpsp2res.dll,-22001" &amp;gt;&amp;gt;offshare.reg
                  echo "138:UDP"="138:UDP:LocalSubNet:Disabled:@xpsp2res.dll,-22002" &amp;gt;&amp;gt;offshare.reg
                  echo "139:TCP"="139:TCP:LocalSubNet:Disabled:@xpsp2res.dll,-22004" &amp;gt;&amp;gt;offshare.reg echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SharedAccess\Epoch] &amp;gt;&amp;gt;offshare.reg
                  echo "Epoch"=dword:000001FC &amp;gt;&amp;gt;offshare.reg echo [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\SharedAccess\Parameters\FirewallPolicy\StandardProfile\GloballyOpenPorts\List] &amp;gt;&amp;gt;offshare.reg
                  echo "445:TCP"="445:TCP:LocalSubNet:Disabled:@xpsp2res.dll,-22005" &amp;gt;&amp;gt;offshare.reg
                  echo "137:UDP"="137:UDP:LocalSubNet:Disabled:@xpsp2res.dll,-22001" &amp;gt;&amp;gt;offshare.reg
                  echo "138:UDP"="138:UDP:LocalSubNet:Disabled:@xpsp2res.dll,-22002" &amp;gt;&amp;gt;offshare.reg
                  echo "139:TCP"="139:TCP:LocalSubNet:Disabled:@xpsp2res.dll,-22004" &amp;gt;&amp;gt;offshare.reg echo [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\SharedAccess\Epoch] &amp;gt;&amp;gt;offshare.reg
                  echo "Epoch"=dword:000001FC &amp;gt;&amp;gt;offshare.reg
                  regedit /s offshare.reg
                  del offshare.reg
                  echo.
                  echo.
                  echo √. 已关闭局域网共享ゞ
                  echo 友情提示:不必重启,设置已生效。
                  echo ▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁
                  echo.
                  pause &amp;amp; goto logon
                  二度创作,如有侵权请联系删除。如没特殊注明,文章均为庚午网络原创,转载请注明https://www.hngengwu.com/gengwuwenku/805.html

                      <bdo id='hfv62eoz'></bdo><ul id='o1pmoblk'></ul>

                  1. <small id='83qvk5n7'></small><noframes id='pcec7kfc'>

                      <i id='cojpstwv'><tr id='i0rs6kme'><dt id='hdcu35gp'><q id='35e3p4cq'><span id='utlp76l9'><b id='a59niplh'><form id='mujb0qv4'><ins id='6kfqn1x9'></ins><ul id='x210i8lh'></ul><sub id='jinpk7mg'></sub></form><legend id='xc3bn2e1'></legend><bdo id='l1qg4qea'><pre id='8ziuufoa'><center id='o7vyytwj'></center></pre></bdo></b><th id='1h4l5gra'></th></span></q></dt></tr></i><div id='sj3d2rdv'><tfoot id='qpcwgjwh'></tfoot><dl id='i5gqr766'><fieldset id='p7f1duc9'></fieldset></dl></div>
                    1. <legend id='j37laqjm'><style id='x4meivv8'><dir id='d4n6nxq1'><q id='syjrdlvz'></q></dir></style></legend>

                      <tfoot id='7sjcwiyw'></tfoot>

                      多一份策划方案,总有益处。

                      请直接添加技术总监微信联系咨询

                      网站设计 品牌营销

                      多一份参考,总有益处

                      联系庚午网络,获得专属《策划方案》及报价

                      咨询相关问题或预约面谈,可以通过以下方式与我们联系

                      业务热线:18574395938 / 大客户专线:18574395938