@echo off
color 2f
mode con cols=50 lines=30
title OKShare 【制作:常州辉煌网络】
ver | findstr “5.”>nul || set bulid=nt6 && goto sc_yhbl
set bulid=nt5
:sc_yhbl
reg query “HKCU\Environment” /v temp >nul 2>nul||set “usertemp=%USERPROFILE%” && goto sc_top
set usertemp=%temp%
:sc_top
cls
del /q %temp%\info.txt>nul 2>nul
:sc_menu
echo.&echo.&echo.
echo 局域网共享一键修复 17.9.11
echo.
echo --------------------------------------------
echo.&echo.&echo.
echo 1、查看网络信息
echo.
echo 2、简单共享(无密码)
echo.
echo 3、密码共享
echo.
echo 4、共享和权限设置
echo.
echo 5、设置权限指南(图文)
echo.
echo 6、打印机共享指南(图文)
echo.
echo 7、软件更新与反馈
echo.&echo.&echo.&echo.&echo.
set select=
set str1=1234567
set /p select= 输入数字,按回车:
if not defined select goto sc_wrong
echo %select%|findstr “[%str1%]”>nul||goto sc_wrong
if %select%==1 (goto sc_info)
if %select%==2 (goto sc_zd)
if %select%3 (goto sc_sd)
if %select%4 (goto sc_gl)
if %select%5 (goto sc_help)
if %select%6 (goto sc_print)
if %select%7 (goto sc_update)
:sc_wrong
mshta vbscript:msgbox(“只能输入1-7的数字”,64,“提示”)(window.close)
goto sc_top
:sc_info
cls
echo.&echo.&echo.&echo.&echo.&echo.&echo.&echo.&echo.
echo 正在处理信息…
if “%bulid%”“nt6” goto sc_nt6
:sc_nt5
(echo.
echo.)>>%usertemp%info.txt
ping www.baidu.com -n 1 >nul || echo 互联网状态: [ 离线 ]>>%usertemp%info.txt && goto sc_ver_nt5
echo 互联网状态: [ 在线 ]>>%usertemp%info.txt
:sc_ver_nt5
(echo ----------------------------------------------------------
echo.)>>%usertemp%info.txt
for /f "skip=1 tokens=2-4 delims=, " %%a in (‘wmic os get caption’) do (
if exist %windir%\SysWOW64 echo 系统版本: %%a %%b %%c 64位>>%usertemp%info.txt & goto sc_ver_nt5_next
echo 系统版本: %%a %%b %%c 32位>>%usertemp%info.txt
)
:sc_ver_nt5_next
(echo.
echo 计算机名: %COMPUTERNAME%
echo.)>>%usertemp%info.txt
for /f "tokens=2 delims= " %%a in (‘net config workstation^|findstr /c:“工作站域”’) do echo 工作组: %%a>>%usertemp%info.txt & goto sc_info_nt5
:sc_info_nt5
(echo.
echo 当前用户: %USERNAME%
echo.)>>%usertemp%info.txt
for /f “delims=” %%a in (‘date /t’) do echo 本机日期: %%a>>%usertemp%info.txt
echo.>>%usertemp%info.txt
for /f “delims=” %%a in (‘time /t’) do echo 本机时间: %%a>>%usertemp%info.txt
echo ---------------------------------------------------------->>%usertemp%info.txt
goto sc_info_more
:sc_nt6
(echo.
echo.)>>%usertemp%info.txt
ping www.baidu.com -n 1 >nul || echo 互联网状态: [ 离线 ]>>%usertemp%info.txt && goto sc_ver_nt6
echo 互联网状态: [ 在线 ]>>%usertemp%info.txt
:sc_ver_nt6
(echo --------------------------------------------------
echo.)>>%usertemp%info.txt
for /f "skip=1 tokens=2-5 delims=?, " %%a in (‘wmic os get caption’) do (
if exist %windir%\SysWOW64 echo 系统版本: %%a %%b %%c %%d 64位>>%usertemp%info.txt & goto sc_ver_nt6_next
echo 系统版本: %%a %%b %%c %%d 32位>>%usertemp%info.txt
)
:sc_ver_nt6_next
(echo.
echo 计算机名: %COMPUTERNAME%
echo.)>>%usertemp%info.txt
for /f "tokens=2 delims= " %%a in (‘net config workstation^|findstr /c:“工作站域”’) do echo 工作组: %%a>>%usertemp%info.txt
(echo.
echo 当前用户: %USERNAME%
echo.)>>%usertemp%info.txt
for /f “delims=” %%a in (‘date /t’) do echo 本机日期: %%a>>%usertemp%info.txt
echo.>>%usertemp%info.txt
for /f “delims=” %%a in (‘time /t’) do echo 本机时间: %%a>>%usertemp%info.txt
echo -------------------------------------------------->>%usertemp%info.txt
:sc_info_more
if “%bulid%”“nt5” ipconfig /all|findstr /v /c:“Windows IP Configuration”|findstr /v /c:“Host Name”|findstr /v /c:“Primary Dns Suffix”|findstr /v /c:“Node Type”|findstr /v /c:“IP Routing Enabled”|findstr /v /c:“WINS Proxy Enabled”>>%usertemp%info.txt && goto sc_info_next
ipconfig /all|findstr /v /c:“Windows IP 配置”|findstr /v /c:“主机名”|findstr /v /c:“主 DNS 后缀”|findstr /v /c:“节点类型”|findstr /v /c:“IP 路由已启用”|findstr /v /c:“WINS 代理已启用”>>%usertemp%info.txt
:sc_info_next
start /w notepad %temp%\info.txt
del /q %temp%\info.txt>nul 2>nul
goto sc_top
:sc_zd
call :sc_qxfix
cls
echo.&echo.&echo.&echo.&echo.&echo.&echo.&echo.
echo 开始修复…
net user guest /active:yes>nul 2>nul
net user guest “”>nul 2>nul
reg add “HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa” /v forceguest /t REG_DWORD /d 0x1 /f>nul 2>nul
reg add “HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa” /v LimitBlankPasswordUse /t REG_DWORD /d 0x0 /f>nul 2>nul
goto sc_main
:sc_sd
call :sc_qxfix
cls
echo.&echo.&echo.&echo.&echo.&echo.&echo.&echo.
echo 开始修复…
net user guest /active:no>nul 2>nul
reg add “HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa” /v forceguest /t REG_DWORD /d 0x0 /f>nul 2>nul
reg add “HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa\MSV1_0” /v NtlmMinClientSec /t REG_DWORD /d 0x0 /f>nul 2>nul
reg add “HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa\MSV1_0” /v NtlmMinServerSec /t REG_DWORD /d 0x0 /f>nul 2>nul
goto sc_main
:sc_main
sc config LanmanWorkstation start= auto>nul 2>nul
sc config LanmanServer start= auto>nul 2>nul
sc config Winmgmt start= auto>nul 2>nul
sc config RpcSs start= auto>nul 2>nul
sc config Netman start= auto>nul 2>nul
sc config RasMan start= demand>nul 2>nul
sc config SSDPSRV start= auto>nul 2>nul
sc config BFE start= auto>nul 2>nul
sc config ALG start= demand>nul 2>nul
sc config SharedAccess start= auto>nul 2>nul
net start SharedAccess /y>nul 2>nul
sc config Browser start= auto>nul 2>nul
net start Browser /y>nul 2>nul
sc config Dnscache start= auto>nul 2>nul
net start Dnscache /y>nul 2>nul
sc config Dhcp start= auto>nul 2>nul
net start Dhcp /y>nul 2>nul
sc config lmhosts start= auto>nul 2>nul
net start lmhosts /y>nul 2>nul
sc config Spooler start= auto>nul 2>nul
net start Spooler /y>nul 2>nul
sc config upnphost start= demand>nul 2>nul
net start upnphost /y>nul 2>nul
reg query “HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\Netlogon” /v Start|findstr “0x4”>nul 2>nul && sc config Netlogon start= demand>nul 2>nul
reg add “HKLM\SYSTEM\CurrentControlSet\services\NetBT\Parameters” /v TransportBindName /t REG_SZ /d \Device\ /f>nul 2>nul
reg delete “HKLM\SYSTEM\CurrentControlSet\services\LanmanServer\Parameters” /v SMB1 /F>nul 2>nul
reg delete “HKLM\SYSTEM\CurrentControlSet\services\LanmanServer\Parameters” /v SMB2 /F>nul 2>nul
reg delete “HKLM\SYSTEM\CurrentControlSet\services\NetBT\Parameters” /v SMBDeviceEnabled /F>nul 2>nul
sc config netbt start= system>nul 2>nul
net start netbt>nul 2>nul
if “%bulid%”“nt6” goto sc_sernt6
:sc_sernt5
sc config PlugPlay start= auto>nul 2>nul
sc config TapiSrv start= auto>nul 2>nul
sc config Nla start= auto>nul 2>nul
net start Nla /y>nul 2>nul
netsh firewall set opmode mode=disable>nul 2>nul
goto sc_main2_etc
:sc_sernt6
sc config DcomLaunch start= auto>nul 2>nul
sc config RpcEptMapper start= auto>nul 2>nul
sc config SamSs start= auto>nul 2>nul
sc config nsi start= auto>nul 2>nul
sc config SstpSvc start= demand>nul 2>nul
sc config MpsSvc start= auto>nul 2>nul
net start MpsSvc /y>nul 2>nul
sc config NlaSvc start= auto>nul 2>nul
sc config netprofm start= auto>nul 2>nul
sc config fdPHost start= auto>nul 2>nul
sc config FDResPub start= auto>nul 2>nul
sc config HomeGroupListener start= auto>nul 2>nul
sc config WMPNetworkSvc start= auto>nul 2>nul
net start WMPNetworkSvc /y>nul 2>nul
sc config HomeGroupProvider start= auto>nul 2>nul
net start HomeGroupProvider /y>nul 2>nul
netsh advfirewall set allprofiles state off>nul 2>nul
:sc_main2_etc
(echo [Unicode]
echo Unicode=yes
echo [Version]
echo signature="CHICAGOCHICAGOCHICAGO"
echo Revision=1
echo [Privilege Rights]
echo sedenynetworklogonright =
echo senetworklogonright = Everyone,Administrators,Users,Power Users,Backup Operators,guest)>>%usertemp%zcl.inf
secedit /configure /db %usertemp%zcl.sdb /cfg %usertemp%zcl.inf /log %usertemp%zcl.log /quiet
del /q %usertemp%zcl.*>nul 2>nul
reg add “HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa\MSV1_0” /v LmCompatibilityLevel /t REG_DWORD /d 0x1 /f>nul 2>nul
reg add “HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa” /v restrictanonymous /t REG_DWORD /d 0x0 /f>nul 2>nul
reg add “HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa” /v restrictanonymoussam /t REG_DWORD /d 0x0 /f>nul 2>nul
reg add “HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa” /v everyoneincludesanonymous /t REG_DWORD /d 0x1 /f>nul 2>nul
reg add “HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa” /v NoLmHash /t REG_DWORD /d 0x0 /f>nul 2>nul
reg add “HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\LanmanServer\Parameters” /v AutoShareServer /t REG_DWORD /d 0x1 /f>nul 2>nul
reg add “HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\LanmanServer\Parameters” /v AutoShareWks /t REG_DWORD /d 0x1 /f>nul 2>nul
reg add “HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\LanmanServer\Parameters” /v restrictnullsessaccess /t REG_DWORD /d 0x0 /f>nul 2>nul
reg add “HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Browser\Parameters” /v MaintainServerList /t REG_SZ /d Auto /f>nul 2>nul
reg add “HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Browser\Parameters” /v IsDomainMaster /t REG_SZ /d FALSE /f>nul 2>nul
for /f “delims=” %%a in (‘reg query “HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\NetBT\Parameters\Interfaces” /s /e /f “0x2”^|findstr “\Tcpip_”’) do reg add “%%a” /v NetbiosOptions /t REG_DWORD /d 0x0 /f>nul 2>nul
reg query “HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\NetBT\Parameters” /v EnableLMHOSTS|findstr “0x0”>nul 2>nul && reg add “HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\NetBT\Parameters” /v EnableLMHOSTS /t REG_DWORD /d 0x1 /f>nul 2>nul
reg delete “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\RemoteComputer\NameSpace{D6277990-4C6A-11CF-8D87-00AA0060F5BF}” /f>nul 2>nul
net use * /del /y>nul 2>nul
net config server /hidden:no>nul 2>nul
net share ipc$>nul 2>nul
goto sc_tip
:sc_gl
cls
reg query “HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa” /v forceguest|findstr “0x1”>nul 2>nul||goto classic
reg add “HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa” /v forceguest /t REG_DWORD /d 0x0 /f>nul 2>nul
set jlb=y
:classic
echo.&echo.&echo.&echo.
echo 功能:管理共享,修改共享文件夹权限
echo ----------------------------------------------
echo.&echo.&echo.&echo.&echo.
echo 【使用说明】
echo.&echo.
echo 点左侧“共享”可查看本机所有共享;
echo.
echo 右键点左侧“共享”可“新建共享”;
echo.
echo 右键点右侧共享可“停止共享”(能多选);
echo.
echo 右键点右侧共享选“属性”可修改权限;
echo.&echo.&echo.&echo.&echo.&echo.&echo.
fsmgmt.msc
if “%jlb%”“y” reg add “HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa” /v forceguest /t REG_DWORD /d 0x1 /f>nul 2>nul
cls
echo.&echo.&echo.&echo.&echo.&echo.&echo.&echo.&echo.
echo 设置完成!
echo.&echo.&echo.
echo 按键盘任意键返回,或直接关闭!
pause>nul 2>nul
goto sc_top
:sc_tip
mshta vbscript:msgbox(“修复完成,请重启计算机”,64,“提示”)(window.close)
goto sc_exit
:sc_help
cls
start “%ProgramFiles%\Internet Explorer\iexplore.exe” “https://www.701107.cn”
goto sc_top
:sc_print
cls
start “%ProgramFiles%\Internet Explorer\iexplore.exe” “https://www.701107.cn”
goto sc_top
:sc_update
cls
start “%ProgramFiles%\Internet Explorer\iexplore.exe” “https://www.701107.cn”
goto sc_top
goto :eof
:sc_qxfix
cls
echo.&echo.&echo.
echo 【使用说明】
echo --------------------------------------------
echo.
echo 鼠标复制共享文件夹地址栏路径粘贴到下方
echo.
echo 如果只共享打印机,就按下回车键跳过
echo.&echo.&echo.&echo.&echo.&echo.&echo.
echo 粘贴路径,按回车:
echo.&echo.
set /p lj=
for %%a in ("%lj%") do set name=%%~na
net share “%name%”="%lj%">nul 2>nul
if “%bulid%”“nt5” cacls “%lj%” /t /e /p everyone:f >nul 2>nul && goto :eof
icacls “%lj%” /grant everyone:(oi)(ci)f>nul 2>nul
goto :eof
点此下载

一键修复共享服务器权限问题相关推荐

  1. ftp文件夹错误_搞定共享文件夹设置 局域网共享一键修复

    很多同学还不会 Windows 共享文件夹 的设置,所以在这里简单的说下 手动设置 的方法以及分享一个共享文件夹快速共享的 批处理脚本 .先创建个用于共享的文件夹,建议存放在 硬盘根目录中 并将 文件 ...

  2. [转]局域网共享一键修复 18.5.8 https://zhuanlan.zhihu.com/p/24178142

    @echo off color 2f mode con cols=50 lines=30 title OKShare [制作:wnsdt] ver | findstr "6."&g ...

  3. ie浏览器修复工具_电脑故障修复不求人!50个小工具可帮你一键修复

    电脑故障修复不求人 50个小工具可帮你一键修复 IE王页设置已损坏修复工具 可帮用户解决win10系统下IE浏览器打开提示"主页设置已损坏"."默认搜索提供程序设置已损坏 ...

  4. 共享服务器设置权限修改,共享服务器权限设置

    共享服务器权限设置 内容精选 换一换 该任务指导用户使用Loader将数据从Hive导出到SFTP服务器.创建或获取该任务中创建Loader作业的业务用户和密码.确保用户已授权访问作业中指定的Hive ...

  5. 无限极评论回复插件_如何一键修复上色破损的旧照片?老照片有救了,用这个魔法插件...

    如何一键修复上色破损的旧照片? 你的老照片有救了,用这个神奇的魔法插件! 紫枫刚发布了一个有魔法的PS 插件:Movavi Photo Editor,没看过的可以点击下面的链接查看一下: PS 照片后 ...

  6. ie浏览器修复_Win7或Win8系统变慢,功能没法用,如何一键修复系统?

    很多的朋友反映电脑时间用长了,会遇到这样一种情况--系统变得越来越慢,甚至有时候使用Windows某项自带功能时,还会遇到无法运行的一些BUG. 其实出现这种情况,有可能是在使用电脑过程中,动了系统的 ...

  7. win10你的电脑设备需要修复_windows10系统崩溃怎么办,一键修复windows10

    windows10系统崩溃怎么办?其实一键修复win10系统可以用win10自带了Windows Recovery Environment功能来修复系统,下面教你一键修复windows10,想要学习详 ...

  8. 360修复导致服务器,桌面安装360软件修复漏洞补丁导致桌面TC端无法登陆,FC端VNC登陆一键修复显示HDC不可达...

    问题描述 桌面虚机安装360软件以后打补丁,触发桌面虚机重启以后TC端无法连接到桌面,FC登陆VNC相应的虚拟机通过桌面云修复工具一键修复到33%,提示HDC不可达. 告警信息 处理过程 在360服务 ...

  9. wdos8系统服务器丢失,win8一键修复丢失DLL,常见dll丢失一键修复办法

    win8一键修复丢失DLL,常见dll丢失一键修复办法? 在win8系统下,特别是win8 64位旗舰版下大家经常会碰到运行程序.或是点击一些游戏时出现XXXX.DLL丢失的故障,导致软件没有法点击, ...

最新文章

  1. Linux下如何对tomcat Java线程进行分析?
  2. 要求用户提供输入,直到他们给出有效的答复
  3. 第一次使用VS Code时你应该知道的一切配置
  4. 性能,可伸缩性和活力
  5. 如何使用ES6中的参数
  6. sass导入sass_如何使用Sass Mixins和Loops
  7. java 进阶 知乎_(二)零基础写Java知乎爬虫之进阶篇
  8. intellij jsp 中文乱码
  9. 论各类BI工具的“大数据”特性!
  10. docker安装vim
  11. ultrascale和arm区别_UltraScale+MPSoC软硬件设计及入门套件
  12. 高性能定时器3——时间轮
  13. 利用CA证书配置安全Web站点
  14. Excel 文本转数值的方法
  15. 使用笔记本的不良习惯
  16. android 系统中的时区设置
  17. 错误 CS8107 C# 7.0 中不支持功能“xxxxxx”。请使用 7.1 或更高的语言版本。
  18. 牛客网项目 1.5Mybatis入门
  19. 联想昭阳K22连不上远程桌面
  20. 快速傅里叶变换简明教程与实现

热门文章

  1. 《预言者》:从路人甲到教父的预言之路
  2. 替换word中英文““为中文双引号“”,且保持西文为Time NewRome
  3. JAVA中阻塞队列的类别和区别(转载)
  4. 中级会计职称考试可以带计算机么,中级会计师无纸化考试允许带计算器入场吗?...
  5. 基于智慧路灯的低碳能源智慧园区建设方案
  6. 手机上安装FTP客户端软件(AndFTP),实现通过手机访问计算机FTP服务器
  7. Linux中的竖线(|)意义——管道符号的简单介绍
  8. 附上windebug常用调试命令
  9. W5500 硬件协议栈方案 串口转以太网稳定性如何?
  10. 基于Fitnesse的验收测试实验