導航:首頁 > 網路共享 > 批處理打開網路共享

批處理打開網路共享

發布時間:2025-02-06 13:34:46

Ⅰ 用批處理登錄同區域網共享文件夾的編寫

1.打開「計算機」窗口,點擊菜單欄底部的「組織」下拉列表,選擇「文件夾和搜索選項」即可打開。

Ⅱ 開啟區域網共享批處理命令

@echo off
@echo.
@echo.
@set/p var=開啟或關閉區域網共享[y/n] :
@if %var%==y goto a
@if %var%==n goto b
exit

:a
@reg add HKLM\SYSTEM\CurrentControlSet\Control\Lsa /v restrictanonymous /t reg_dword /d 0 /f
@sc config lanmanserver start= auto 1>nul 2>nul
@sc config LmHosts start= auto 1>nul 2>nul
@sc config lanmanworkstation start= auto 1>nul 2>nul
@net start lanmanserver 1>nul 2>nul
@net start LmHosts 1>nul 2>nul
@net start lanmanworkstation 1>nul 2>nul
@echo.
@ipconfig|findstr IP
pause>nul&exit

:b
@sc config lanmanserver start= disabled 1>nul 2>nul
@sc config LmHosts start= disabled 1>nul 2>nul
@sc config lanmanworkstation start= disabled 1>nul 2>nul
@net stop lanmanserver 1>nul 2>nul
@net stop LmHosts 1>nul 2>nul
@net stop lanmanworkstation 1>nul 2>nul
exit

Ⅲ 請問怎麼用批處理(bat)修改服務,策略組和共享許可權

@echo off
sc config lanmanserver start= auto
net start server
rem 不允許SAM 帳戶的匿名枚舉, 設為"停用"
reg add HKLM\System\CurrentControlSet\Control\Lsa /v RestrictAnonymousSAM /t REG_DWORD /d 0 /f

rem 網路訪問:不允許 SAM 帳戶和共享的匿名枚舉,設為"停用"
reg add HKLM\System\CurrentControlSet\Control\Lsa /v RestrictAnonymous /t REG_DWORD /d 0 /f

rem 本地帳戶的共享和安全模型,屬性改為"經典 - 本地用戶以自己的身份驗證"
reg add HKLM\System\CurrentControlSet\Control\Lsa /v ForceGuest /t REG_DWORD /d 0 /f

rem 賬戶:使用空白密碼的本地賬戶只允許進行控制台登錄,設為「停用"
reg add HKLM\System\CurrentControlSet\Control\Lsa /v LimitBlankPasswordUse /t REG_DWORD /d 0 /f
net user guest /active:yes
net stop sharedaccess
net share f=f:
cacls d:\ /t /e /c /r everyone
cacls f:\ /t /e /c /g guest:f
cacls d:\ /t /e /c /g administrator:f
----------------------------------------------------
ok,,就是第5.將'文件夾選項'里的"使用簡單的文件共享"關閉,這個不會

閱讀全文

與批處理打開網路共享相關的資料

熱點內容
手機上顯示滿格信號可網路不好 瀏覽:782
小米貓無法連接網路超時 瀏覽:460
先科a5網路機頂盒密碼 瀏覽:524
wegame登錄dnf提示網路連接中斷 瀏覽:714
校園的無線網路怎麼把賬號退了 瀏覽:789
網路游戲傳奇哪個版本好玩 瀏覽:619
無線網路寬頻三家運營商比較 瀏覽:274
如何提高網路優化能力 瀏覽:36
被家長設置了網路怎麼關掉 瀏覽:419
網路創作設置標准 瀏覽:388
老年人網路熱詞軟體 瀏覽:452
安卓微信的網路設置在哪裡 瀏覽:974
管家婆通過花生殼遠程網路設置 瀏覽:766
wifi已連接光纖網路 瀏覽:18
筆記本電腦搜不到路由器的網路 瀏覽:858
不明微信號網路陷阱多 瀏覽:803
電腦網路遠程連接在哪裡找 瀏覽:57
網路安全密鑰不匹配如何解決 瀏覽:78
哪個網路棋牌比較可靠 瀏覽:233
蘋果手機網路信號為什麼老是在傳 瀏覽:550

友情鏈接