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

批處理打開網路共享

發布時間: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.將'文件夾選項'里的"使用簡單的文件共享"關閉,這個不會

閱讀全文

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

熱點內容
電視機網路機頂盒怎麼用 瀏覽:295
網路插頭為什麼不亮 瀏覽:709
網路版采購軟體 瀏覽:715
某公司網路營銷策劃書 瀏覽:963
同一條網路上有很多路由器怎麼辦 瀏覽:426
淘寶打開出現網路崩潰怎麼處理 瀏覽:284
光纖可以用路由器連接但沒網路 瀏覽:686
泰華無線網路可以用嗎 瀏覽:23
沒有無線網路可以傳輸數據嗎 瀏覽:561
戴爾筆記本的網路喚醒怎麼設置 瀏覽:358
網路復試手機自動息屏 瀏覽:867
手機金屬殼對網路有什麼影響 瀏覽:175
路由器主人網路關閉了打不開 瀏覽:877
電信網路玩lol哪個節點好 瀏覽:633
蘋果7p怎麼用usb共享網路 瀏覽:902
如何解除應用網路限制手機 瀏覽:484
監控無法識別移動網路嗎 瀏覽:55
小米cc9e手機沒網路怎麼辦 瀏覽:885
落實網路安全法規的工作建議 瀏覽:977
網路變無信號 瀏覽:791

友情鏈接