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

批處理打開網路共享

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

閱讀全文

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

熱點內容
火影忍者登陸網路異常怎麼辦 瀏覽:746
安徽代理商網路推廣需要多少錢 瀏覽:636
農村無線網路用流量卡哪種好 瀏覽:129
移動網路電視怎麼找到快快影視 瀏覽:474
三星s4怎麼設置網路 瀏覽:521
檢測真偽小米6提示網路異常 瀏覽:307
xp無線區域中找不到無線網路 瀏覽:519
無法連接到移動網路啥情況 瀏覽:210
網路教學教研會議工具有哪些 瀏覽:320
聯想列印機無線網路連接方法 瀏覽:112
華為手機有移動數據但無網路 瀏覽:543
榮耀8x微信無網路怎麼回事 瀏覽:671
神武手游網路異常怎麼辦 瀏覽:304
紅米note9連接網路特差 瀏覽:807
筆記本網路共享給台式機 瀏覽:452
網路中如何查路由器地址 瀏覽:853
怎麼創建網路撥號 瀏覽:891
g代表是什麼意思網路聊天 瀏覽:696
起床中控網路未連接 瀏覽:309
廣東網路軟體一個月能掙多少錢 瀏覽:389

友情鏈接