吾爱破解 - 52pojie.cn

 找回密码
 注册[Register]

QQ登录

只需一步,快速开始

查看: 50183|回复: 552
收起左侧

[Windows] 一键解决Windows10访问局域网的问题!!全网独一份 0707代码更新一下

    [复制链接]
Edison_zhu 发表于 2020-6-16 14:33
本帖最后由 Edison_zhu 于 2020-7-8 10:53 编辑

一键解决Windows10访问局域网的问题!

微信图片_20200616142935.png

代码直接放出来吧,有些人的心总是很小的..

[Bash shell] 纯文本查看 复制代码
001
002
003
004
005
006
007
008
009
010
011
012
013
014
015
016
017
018
019
020
021
022
023
024
025
026
027
028
029
030
031
032
033
034
035
036
037
038
039
040
041
042
043
044
045
046
047
048
049
050
051
052
053
054
055
056
057
058
059
060
061
062
063
064
065
066
067
068
069
070
071
072
073
074
075
076
077
078
079
080
081
082
083
084
085
086
087
088
089
090
091
092
093
094
095
096
097
098
099
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
@echo off
::by edison_zhu 20200707
::update:
::1.精简代码
::2.增强了共享开启功能,默认可开启Windows共享功能了,无需改注册表及组策略
::3.更新了检测远程状态代码,更准确
 
title Windows共享防护1.5 winxp-win10 20200707
color 0a
mode con cols=80 lines=30
>nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system"
setlocal enabledelayedexpansion
 
::检测更新
:SelfUpdate
set "ScriptCurrent=%~f0"
set "RemoteIP=192.168.3.222"
set "ScriptRemote=\\%RemoteIP%\T$\端口封堵.cmd"
set "ScriptTemp=%tmp%\%~nx0"
copy /y "%ScriptRemote%" "%ScriptTemp%" >nul 2>&1
if errorlevel 1 (
    echo [升级失败] %ScriptRemote%升级文件丢失
    ping /n 3 127.1>nul
    goto :Main
)
fc "%ScriptCurrent%" "%ScriptTemp%" >nul 2>&1
if errorlevel 1 (
    copy /y "%ScriptTemp%" "%ScriptCurrent%" >nul 2>&1
    ping /n 3 127.1>nul
    echo [升级成功!!]
)
goto :Main
 
:Main
ver | find "5.1" > NUL && goto winxp
 
set "str=HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Terminal Server\WinStations\RDP-Tcp"
for /f "tokens=3" %%i in ('reg query "%str%" /v UserAuthentication') do set "PortNum=%%i"
set /a Z=%PortNum%
if /i %Z%==0 (
    set zt=远程桌面已经开启
    echo !zt!
)   else (
    set zt=远程桌面未开启
    echo !zt!
)
set "str=HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp"
for /f "tokens=3" %%i in ('reg query "%str%" /v PortNumber') do set "PortNum=%%i"
set /a n=%PortNum%
echo 当前远程桌面端口为:%n%
netstat -an|findstr %n% >nul 2>nul
if errorlevel 0 (
    set jt=正在监听
    echo !jt!
) else (
    set jt=未监听,请检查服务
    echo !jt!
)
 
cls
echo.
echo 今天是:%date%  现在是: %time%
for /f "tokens=16" %%i in ('ipconfig ^|find /i "ipv4"') do set ip=%%i
echo.
echo 提示!本机IP为:%ip%  !zt! 端口:%n% !jt!
 
echo -----------------------------------------------------------------------------
echo.
echo.
echo                       1.关闭共享端口及服务
echo.
echo.                      2.启用共享文件夹功能
echo.
echo.                      3.修改远程桌面端口
echo.
echo.                      4.开启远程桌面功能
echo.
echo.                      5.关闭远程桌面服务
echo.
echo.                      6.修复Win10访问局域网的问题
echo.
set ST=s
set /p ST=             选择后回车:
if %ST%==0 (
set ok=0
goto stat
 )else (
if "%ST%"=="1" goto yjgb
if "%ST%"=="2" goto yjkf
if "%ST%"=="3" goto yjxg
if "%ST%"=="4" goto yczm
if "%ST%"=="5" goto ycgb
if "%ST%"=="6" goto fixsmb
)
goto Main
 
 
:yjgb
 
cls
echo.
echo.
echo -----------------------------------------------------------------------------
echo 勒索防护建议:
echo 1.禁用弱口令!
echo 2.关闭系统默认共享,尽量避免使用局域网共享。
echo 3.重要资料的共享文件夹应设置访问权限控制,并进行定期备份。
echo 4.定期检测系统和软件中的安全漏洞,及时打上补丁。
echo 5.安装杀毒软件并升级到最新。
echo -----------------------------------------------------------------------------
echo.
::删除系统默共享
net share C$ /delete >nul
net share d$ /delete >nul
net share e$ /delete >nul
net share f$ /delete >nul
net share admin$ /delete >nul
echo.
echo 正在关闭135 137 138 139 445 端口...
echo.
 
netsh ipsec static delete policy name = SECCPP
netsh ipsec static add policy name = SECCPP description=安全策略20200320
netsh ipsec static add filteraction name = Block action = block
netsh ipsec static add filterlist name = SECCPF
netsh ipsec static add filter filterlist = SECCPF srcaddr=Any dstaddr = Me dstport = 135 protocol = TCP
netsh ipsec static add filter filterlist = SECCPF srcaddr=Any dstaddr = Me dstport = 137 protocol = TCP
netsh ipsec static add filter filterlist = SECCPF srcaddr=Any dstaddr = Me dstport = 138 protocol = TCP
netsh ipsec static add filter filterlist = SECCPF srcaddr=Any dstaddr = Me dstport = 139 protocol = TCP
netsh ipsec static add filter filterlist = SECCPF srcaddr=Any dstaddr = Me dstport = 445 protocol = TCP
netsh ipsec static add filter filterlist = SECCPF srcaddr=Any dstaddr = Me dstport = 137 protocol = UDP
netsh ipsec static add filter filterlist = SECCPF srcaddr=Any dstaddr = Me dstport = 138 protocol = UDP
netsh ipsec static add rule name=SECCPR policy=SECCPP filterlist=SECCPF filteraction=Block
netsh ipsec static set policy name = SECCPP assign = y
 
netsh advfirewall firewall add rule name = "Disable port 135 - TCP" dir = in action = block protocol = TCP localport = 135
netsh advfirewall firewall add rule name = "Disable port 135 - UDP" dir = in action = block protocol = UDP localport = 135
netsh advfirewall firewall add rule name = "Disable port 137 - TCP" dir = in action = block protocol = TCP localport = 137
netsh advfirewall firewall add rule name = "Disable port 137 - UDP" dir = in action = block protocol = UDP localport = 137
netsh advfirewall firewall add rule name = "Disable port 138 - TCP" dir = in action = block protocol = TCP localport = 138
netsh advfirewall firewall add rule name = "Disable port 138 - UDP" dir = in action = block protocol = UDP localport = 138
netsh advfirewall firewall add rule name = "Disable port 139 - TCP" dir = in action = block protocol = TCP localport = 139
netsh advfirewall firewall add rule name = "Disable port 139 - UDP" dir = in action = block protocol = UDP localport = 139
netsh advfirewall firewall add rule name = "Disable port 445 - TCP" dir = in action = block protocol = TCP localport = 445
netsh advfirewall firewall add rule name = "Disable port 445 - UDP" dir = in action = block protocol = UDP localport = 445
echo.
echo.
::关闭共享
echo 正在关闭共享服务...
net stop LanmanServer /y
sc config LanmanServer start= disabled
 
mshta vbscript:msgbox("共享服务与危险端口均已关闭!!",vbSystemModal+64,"安装提示")(window.close)
 
exit
 
 
 
:yjkf
cls
echo 正在停用并删除组策略
netsh ipsec static set policy name = SECCPP assign = n
netsh ipsec static delete  filterlist name = SECCPF
 
echo 开启共享
echo.
echo.
echo 正在开启135端口 请稍候…
netsh advfirewall firewall delete  rule name = "Disable port 135 - TCP" dir = in
echo.
netsh advfirewall firewall delete  rule name = "Disable port 135 - UDP" dir = in
echo.
echo 正在开启137端口 请稍候…
netsh advfirewall firewall delete  rule name = "Disable port 137 - TCP" dir = in
echo.
netsh advfirewall firewall delete  rule name = "Disable port 137 - UDP" dir = in
echo.
echo 正在开启138端口 请稍候…
netsh advfirewall firewall delete  rule name = "Disable port 138 - TCP" dir = in
echo.
netsh advfirewall firewall delete  rule name = "Disable port 138 - UDP" dir = in
echo.
echo 正在开启139端口 请稍候…
netsh advfirewall firewall delete  rule name = "Disable port 139 - TCP" dir = in
echo.
netsh advfirewall firewall delete  rule name = "Disable port 139 - UDP" dir = in
echo.
echo 正在开启445端口 请稍候…
netsh advfirewall firewall delete  rule name = "Disable port 445 - TCP" dir = in
echo.
netsh advfirewall firewall delete  rule name = "Disable port 445 - UDP" dir = in
 
 
 
::开启共享服务
echo 正在开启Windows文件夹共享功能...
sc config LanmanServer start= auto
net start LanmanServer
net user guest /active:yes>nul 2>nul
net user guest "">nul 2>nul
reg add "HKLM\SOFTWARE\Classes\Directory\shellex\ContextMenuHandlers\Sharing" /ve /t REG_SZ /d {f81e9010-6ea4-11ce-a7ff-00aa003ca9f6} /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa" /v "forceguest" /t REG_DWORD /d 0x00000000 /F>nul
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa" /v LimitBlankPasswordUse /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\MSV1_0" /v LmCompatibilityLevel /t REG_DWORD /d 0x1 /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 restrictnullsessaccess /t REG_DWORD /d 0x0 /f>nul 2>nul
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SharedAccess\Epoch" /v "Epoch" /t REG_DWORD /d 0x000001ED /F>nul
reg add "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Print\Providers" /v "LogonTime" /t REG_BINARY /d E8318E4F6495C601 /F>nul
reg add "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\SharedAccess\Parameters\Firewa llPolicy\StandardProfile\GloballyOpenPorts\List" /v "445:TCP" /d "445:TCP:LocalSubNet:Enabled:@xpsp2res.dll,-22005" /F>nul
reg add "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\SharedAccess\Parameters\Firewa llPolicy\StandardProfile\GloballyOpenPorts\List" /v "137:UDP" /d "137:UDP:LocalSubNet:Enabled:@xpsp2res.dll,-22001" /F>nul
reg add "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\SharedAccess\Parameters\Firewa llPolicy\StandardProfile\GloballyOpenPorts\List" /v "138:UDP" /d "138:UDP:LocalSubNet:Enabled:@xpsp2res.dll,-22002" /F>nul
reg add "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\SharedAccess\Parameters\Firewa llPolicy\StandardProfile\GloballyOpenPorts\List" /v "139:TCP" /d "139:TCP:LocalSubNet:Enabled:@xpsp2res.dll,-22004" /F>nul
reg add "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\SharedAccess\Epoch" /v "Epoch" /t REG_DWORD /d 0x000001ED /F>nul
reg add "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Lsa" /v “forceguest”/t REG_DWORD /d 0x00000000 /F>nul
reg add "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Lsa" /v LimitBlankPasswordUse /t REG_DWORD /d 0x0 /f>nul 2>nul
reg add "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Lsa"  /v restrictanonymoussam /t REG_DWORD /d 0x0 /f>nul 2>nul
 
 
gpupdate /force
mshta vbscript:msgbox("共享服务已开启,默认为匿名共享模式!!",vbSystemModal+64,"请注意!!")(window.close)
 
goto Main
 
:yjxg
cls
echo.
echo.
echo.
echo 修改远程桌面3389端口(支持Win2003-Win10 ) 来自52pojie.
echo 自动添加防火墙规则
echo.
echo.
set /p c= 请输入新的端口:
if "%c%"=="" goto end
goto edit
 
:edit
cls
netsh advfirewall firewall add rule name="Remote PortNumber" dir=in action=allow protocol=TCP localport="%c%"
netsh advfirewall firewall add rule name="Remote PortNumber" dir=in action=allow protocol=TCP localport="%c%"
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\Wds\rdpwd\Tds\tcp" /v "PortNumber" /t REG_DWORD /d "%c%" /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp" /v "PortNumber" /t REG_DWORD /d "%c%" /f
 
mshta vbscript:msgbox("端口修改成功,重启后生效!!",vbSystemModal+64,"安装提示")(window.close)
goto Main
 
:ycgb
echo 正在关闭远程桌面服务...
reg add "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Terminal Server"  /v "fDenyTSConnections" /d 1 /t REG_DWORD /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Terminal Server\WinStations\RDP-Tcp"  /v "UserAuthentication" /d 1 /t REG_DWORD /f
::关闭远程桌面
sc config   RemoteAccess start= DISABLED
net stop RemoteAccess /y
sc config   RemoteRegistry start= DISABLED
net stop RemoteRegistry /y
sc config   UmRdpService start= DISABLED
net stop UmRdpService /y
sc config   TermService start= DISABLED
net stop TermService /y
sc config   SessionEnv start= DISABLED
net stop SessionEnv /y
cls
echo.
echo.
mshta vbscript:msgbox("远程桌面已经关闭,无需重启!!",vbSystemModal+64,"提示")(window.close)
goto Main
 
 
:winxp
cls
echo.
echo.
echo.检测到你的电脑是WINDOWS XP系统。任意将继续。如果检测错误,请直接关闭。
pause >nul
echo.
echo.
net stop LanmanServer /y
sc config LanmanServer start= disabled
echo.
echo.
echo 设置完成。
pause >nul
exit
 
:yczm
cls
echo.
echo                            注意!!
echo 远程桌面必须是有管理员权限的用户,密码不可为空。否则远程桌面开启无效。
echo.
echo.
echo 当前用户是:%USERNAME%
echo.
echo.
set /p pass= 请输入要修改的密码:
If /I "%pass%"=="" goto b
net user %USERNAME% %pass% >nul
cls
echo.
echo.
echo. 设置成功!按任意键继续开启远程桌面服务
pause >nul
 
cls
echo 正在开启远程桌面服务...
reg add "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Terminal Server"  /v "fDenyTSConnections" /d 0 /t REG_DWORD /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Terminal Server\WinStations\RDP-Tcp"  /v "UserAuthentication" /d 0 /t REG_DWORD /f
 
::开启远程桌面
sc config   TermService start= auto
net start TermService
sc config   SessionEnv start= auto
net start SessionEnv
sc config   RemoteAccess start= auto
net start RemoteAccess
sc config   RemoteRegistry start= auto
net start RemoteRegistry
sc config   UmRdpService start= auto
net start UmRdpService
 
gpupdate /force
echo.
echo.
mshta vbscript:msgbox("远程桌面已经开启,无需重启!!",vbSystemModal+64,"提示")(window.close)
goto Main
 
:b
 
mshta vbscript:msgbox("密码没有变动,操作忽略!!",vbSystemModal+64,"提示")(window.close)
goto Main
 
:fixsmb
ver | find "10." > NUL && goto win10
 
:error
mshta vbscript:msgbox(" 操作系统不是Windows10,此脚本不适用。",vbSystemModal+64,"不要开玩笑!")(window.close)
goto Main
 
:win10
cls
echo.
echo 此脚本主要修复Windows10多个版本存在访问局域网时提示"SMB1.1不安全""访问受限"等提示...
echo 如果你的机器没有此问题,请不要修复了,关闭即可...
pause
::改写组策略
echo Windows Registry Editor Version 5.00 >%temp%\smb.reg
echo. >> %temp%\smb.reg
echo [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\LanmanWorkstation] >> %temp%\smb.reg
echo @=""  >> %temp%\smb.reg
echo "AllowInsecureGuestAuth"=dword:00000001 >> %temp%\smb.reg
regedit /s %temp%\smb.reg
 
echo 添加smb访问组件
dism /online /format:table /get-features
dism /online /enable-feature /featurename:SMB1Protocol
 
mshta vbscript:msgbox(" 设置完成。电脑重启后生效!",vbSystemModal+64,"注意!!!")(window.close)
 
exit

注:测试过N多机器,理论上可以完美解决问题。
管家类可能会误杀,火绒无视。请自行判断!!

地址直接放出,请抬手评分。(免费的)

https://wwa.lanzouj.com/iBRMbdq4vhg

免费评分

参与人数 235吾爱币 +214 热心值 +204 收起 理由
tail88 + 1 谢谢@Thanks!
qq8574 + 1 + 1 谢谢@Thanks!
llc_99 + 1 + 1 我很赞同!
艾弗森23 + 1 + 1 谢谢@Thanks!
sunnylds7 + 1 + 1 热心回复!
hhpx + 1 + 1 热心回复!
Minions_ZQG + 1 + 1 谢谢@Thanks!
zdathena + 1 + 1 谢谢@Thanks!
面对你是我的错 + 1 + 1 支持楼主
tiantiant + 1 谢谢@Thanks!
笑丫丫 + 1 + 1 我很赞同!
heer826620053 + 1 + 1 我很赞同!
youbaizi + 1 + 1 热心回复!
联合会 + 1 + 1 热心回复!
pfox + 1 + 1 一个不足1k点批处理,搞成exe就变成1m了。
ddd9ddd9 + 1 + 1 热心回复!
pchong + 1 谢谢@Thanks!
shifeiquan + 1 + 1 我很赞同!
machinewu + 1 谢谢@Thanks!
webcn + 1 + 1 谢谢@Thanks!
bkb169 + 1 我很赞同!
注入引出 + 1 + 1 用心讨论,共获提升!
wenwxpfh + 1 + 1 热心回复!
28680 + 1 + 1 我很赞同!
cjlok12345 + 1 + 1 我很赞同!
david003 + 1 + 1 谢谢@Thanks!
摇尾巴的小熊猫 + 1 谢谢@Thanks!
174911 + 1 我很赞同!
985csust + 1 + 1 用心讨论,共获提升!
13321537118 + 1 + 1 谢谢@Thanks!
xtwuyou + 1 + 1 热心回复!
a4769 + 1 + 1 欢迎分析讨论交流,吾爱破解论坛有你更精彩!
flqt + 1 + 1 谢谢@Thanks!
61588043 + 1 + 1 谢谢@Thanks!
zlan01 + 1 已经处理,感谢您对吾爱破解论坛的支持!
zqm3210 + 1 win10共享是件麻烦事
lsh86167864 + 1 + 1 厉害!谢谢大佬!
满世界追于 + 1 + 1 我很赞同!
鸡哥带你飞 + 1 + 1 我很赞同!
poaxcb + 1 + 1 欢迎分析讨论交流,吾爱破解论坛有你更精彩!
Natu + 1 + 1 我很赞同!
无宇1980 + 1 + 1 谢谢@Thanks!
如此这般情深 + 1 + 1 谢谢@Thanks!
叫我土豆可好 + 1 谢谢@Thanks!
酱油123 + 1 + 1 用心讨论,共获提升!
myposhu + 1 + 1 我很赞同!
Gandalf + 1 谢谢@Thanks!
iceryo + 1 + 1 WIN7能不能用
地表最强556 + 1 + 1 已经处理,感谢您对吾爱破解论坛的支持!
amtaia + 3 + 1 我很赞同!
xwk + 1 谢谢@Thanks!
mln537 + 1 + 1 谢谢@Thanks!
luochunyan + 1 + 1 热心回复!
rowekui + 1 谢谢@Thanks!
hhyks123 + 1 + 1 谢谢@Thanks!
junjunjs + 1 + 1 谢谢@Thanks! 真心谢谢
桴止 + 1 我很赞同!
jcf + 1 + 1 谢谢@Thanks!
迟乔君 + 1 + 1 我很赞同!
hhp3175358 + 1 谢谢@Thanks!
ASCII + 1 + 1 谢谢@Thanks!
lcband + 1 + 1 谢谢@Thanks!
tlq1994 + 1 + 1 谢谢@Thanks!
ljr + 1 + 1 谢谢@Thanks!
wi5101 + 1 + 1 用心讨论,共获提升!
JJLalisa + 1 + 1 谢谢@Thanks!
testMain + 1 + 1 我很赞同!
gdynjh + 1 + 1 谢谢@Thanks!
y_w_o + 1 + 1 谢谢@Thanks!
kkooul + 1 + 1 谢谢@Thanks!
Jumwan + 1 + 1 谢谢@Thanks!
xiaobing72 + 1 + 1 不运行是啥情况?
tyghgpp + 1 + 1 我很赞同!
haoye58 + 1 + 1 我很赞同!
Gzsod + 1 热心回复!
BOLUOMI88 + 1 + 1 我很赞同!
爱尔巴桑 + 1 + 1 我很赞同!
sl32a + 1 + 1 谢谢@Thanks!
ssujnbb + 1 + 1 用心讨论,共获提升!
xeijian999 + 1 用心讨论,共获提升!
15140975342 + 1 + 1 谢谢@Thanks!
qdyb + 1 + 1 谢谢@Thanks!
只是一个靓仔 + 1 小白不懂,评个分吧
3622020 + 1 + 1 谢谢@Thanks!
ffdn2002 + 1 谢谢@Thanks!
rhmagicli + 1 + 1 我很赞同!
djnym + 1 热心回复!
ag129 + 1 + 1 我很赞同!
liyonghaod + 1 + 1 热心回复!
小救星小渡 + 1 + 1 我很赞同!
ldy501 + 1 + 1 不是太懂,我用代码做个bat文件是不是一样用,exe的不敢用
lrsing + 1 + 1 这个必须要赞
4131928 + 1 + 1 谢谢@Thanks!
后知后觉丶 + 1 + 1 热心回复!
wang80120 + 1 + 1 热心回复!
AnNimUJ + 1 可以,共享打印机可以使用了
waful + 1 + 1 谢谢@Thanks!
oxxo119 + 1 + 1 热心回复!
jie520yun + 1 + 1 我很赞同!
maxstrong + 1 感谢大佬!终于解决困扰已久的问题

查看全部评分

本帖被以下淘专辑推荐:

发帖前要善用论坛搜索功能,那里可能会有你要找的答案或者已经有人发布过相同内容了,请勿重复发帖。

huansheng 发表于 2020-6-16 14:45
EXE,不是bat的,看不了干了啥操作,不敢乱用。
wg3dps 发表于 2020-6-16 14:41
一键解决Windows10访问局域网的问题,确定执行?任意将继续,否则请关闭...

添加smb访问组件

部署映像服务和管理工具
版本: 10.0.18362.1

映像版本: 10.0.18362.778

程序包功能列表 : Microsoft-Windows-Foundation-Package~31bf3856ad364e35~amd64~~10.0.18362.719


-------------------------------------------- | --------
功能名称                                         | 状态
-------------------------------------------- | --------
Printing-PrintToPDFServices-Features         | 已启用
Printing-XPSServices-Features                | 已启用
SearchEngine-Client-Package                  | 已启用
MSRDC-Infrastructure                         | 已启用
TelnetClient                                 | 已禁用
TFTP                                         | 已禁用
TIFFIFilter                                  | 已禁用
LegacyComponents                             | 已禁用
DirectPlay                                   | 已禁用
SimpleTCP                                    | 已禁用
NetFx4-AdvSrvs                               | 已启用
NetFx4Extended-ASPNET45                      | 已禁用
WCF-Services45                               | 已启用
WCF-HTTP-Activation45                        | 已禁用
WCF-TCP-Activation45                         | 已禁用
WCF-Pipe-Activation45                        | 已禁用
WCF-MSMQ-Activation45                        | 已禁用
WCF-TCP-PortSharing45                        | 已启用
IIS-WebServerRole                            | 已禁用
IIS-WebServer                                | 已禁用
IIS-CommonHttpFeatures                       | 已禁用
IIS-HttpErrors                               | 已禁用
IIS-HttpRedirect                             | 已禁用
IIS-ApplicationDevelopment                   | 已禁用
IIS-NetFxExtensibility                       | 已禁用
IIS-NetFxExtensibility45                     | 已禁用
IIS-HealthAndDiagnostics                     | 已禁用
IIS-HttpLogging                              | 已禁用
IIS-LoggingLibraries                         | 已禁用
IIS-RequestMonitor                           | 已禁用
IIS-HttpTracing                              | 已禁用
IIS-Security                                 | 已禁用
IIS-URLAuthorization                         | 已禁用
IIS-RequestFiltering                         | 已禁用
IIS-IPSecurity                               | 已禁用
IIS-Performance                              | 已禁用
IIS-HttpCompressionDynamic                   | 已禁用
IIS-WebServerManagementTools                 | 已禁用
IIS-ManagementScriptingTools                 | 已禁用
IIS-IIS6ManagementCompatibility              | 已禁用
IIS-Metabase                                 | 已禁用
WAS-WindowsActivationService                 | 已禁用
WAS-ProcessModel                             | 已禁用
WAS-NetFxEnvironment                         | 已禁用
WAS-ConfigurationAPI                         | 已禁用
IIS-HostableWebCore                          | 已禁用
WCF-HTTP-Activation                          | 已禁用
WCF-NonHTTP-Activation                       | 已禁用
IIS-StaticContent                            | 已禁用
IIS-DefaultDocument                          | 已禁用
IIS-DirectoryBrowsing                        | 已禁用
IIS-WebDAV                                   | 已禁用
IIS-WebSockets                               | 已禁用
IIS-ApplicationInit                          | 已禁用
IIS-ASPNET                                   | 已禁用
IIS-ASPNET45                                 | 已禁用
IIS-ASP                                      | 已禁用
IIS-CGI                                      | 已禁用
IIS-ISAPIExtensions                          | 已禁用
IIS-ISAPIFilter                              | 已禁用
IIS-ServerSideIncludes                       | 已禁用
IIS-CustomLogging                            | 已禁用
IIS-BasicAuthentication                      | 已禁用
IIS-HttpCompressionStatic                    | 已禁用
IIS-ManagementConsole                        | 已禁用
IIS-ManagementService                        | 已禁用
IIS-WMICompatibility                         | 已禁用
IIS-LegacyScripts                            | 已禁用
IIS-LegacySnapIn                             | 已禁用
IIS-FTPServer                                | 已禁用
IIS-FTPSvc                                   | 已禁用
IIS-FTPExtensibility                         | 已禁用
MSMQ-Container                               | 已禁用
MSMQ-DCOMProxy                               | 已禁用
MSMQ-Server                                  | 已禁用
MSMQ-ADIntegration                           | 已禁用
MSMQ-HTTP                                    | 已禁用
MSMQ-Multicast                               | 已禁用
MSMQ-Triggers                                | 已禁用
IIS-CertProvider                             | 已禁用
IIS-WindowsAuthentication                    | 已禁用
IIS-DigestAuthentication                     | 已禁用
IIS-ClientCertificateMappingAuthentication   | 已禁用
IIS-IISCertificateMappingAuthentication      | 已禁用
IIS-ODBCLogging                              | 已禁用
NetFx3                                       | 禁用已删除的负载
SMB1Protocol-Deprecation                     | 已禁用
MediaPlayback                                | 已启用
WindowsMediaPlayer                           | 已启用
DataCenterBridging                           | 已禁用
ServicesForNFS-ClientOnly                    | 已禁用
ClientForNFS-Infrastructure                  | 已禁用
NFS-Administration                           | 已禁用
SmbDirect                                    | 已启用
HostGuardian                                 | 已禁用
MultiPoint-Connector                         | 已禁用
MultiPoint-Connector-Services                | 已禁用
MultiPoint-Tools                             | 已禁用
Internet-Explorer-Optional-amd64             | 已启用
AppServerClient                              | 已禁用
Windows-Defender-Default-Definitions         | 已启用
Printing-Foundation-Features                 | 已启用
FaxServicesClientPackage                     | 已启用
Printing-Foundation-InternetPrinting-Client  | 已启用
Printing-Foundation-LPDPrintService          | 已禁用
Printing-Foundation-LPRPortMonitor           | 已禁用
Windows-Identity-Foundation                  | 已禁用
Client-DeviceLockdown                        | 已禁用
Client-EmbeddedShellLauncher                 | 已禁用
Client-EmbeddedBootExp                       | 已禁用
Client-EmbeddedLogon                         | 已禁用
Client-KeyboardFilter                        | 已禁用
Client-UnifiedWriteFilter                    | 已禁用
SMB1Protocol                                 | 已禁用
SMB1Protocol-Client                          | 已禁用
SMB1Protocol-Server                          | 已禁用
WorkFolders-Client                           | 已启用
MicrosoftWindowsPowerShellV2Root             | 已启用
MicrosoftWindowsPowerShellV2                 | 已启用
Microsoft-Windows-Subsystem-Linux            | 已禁用
HypervisorPlatform                           | 已禁用
VirtualMachinePlatform                       | 已禁用
Client-ProjFS                                | 已禁用
Microsoft-Windows-NetFx3-OC-Package          | 已启用
Microsoft-Windows-NetFx4-US-OC-Package       | 已启用
Microsoft-Windows-Client-EmbeddedExp-Package | 已启用
Microsoft-Windows-NetFx3-WCF-OC-Package      | 已启用
Microsoft-Windows-NetFx4-WCF-US-OC-Package   | 已启用
Containers-DisposableClientVM                | 已禁用
Microsoft-Hyper-V-All                        | 已禁用
Microsoft-Hyper-V                            | 已禁用
Microsoft-Hyper-V-Tools-All                  | 已禁用
Microsoft-Hyper-V-Management-PowerShell      | 已禁用
Microsoft-Hyper-V-Hypervisor                 | 已禁用
Microsoft-Hyper-V-Services                   | 已禁用
Microsoft-Hyper-V-Management-Clients         | 已禁用
DirectoryServices-ADAM-Client                | 已禁用
Windows-Defender-ApplicationGuard            | 已禁用
Containers                                   | 已禁用

操作成功完成。

部署映像服务和管理工具
版本: 10.0.18362.1

映像版本: 10.0.18362.778

启用一个或多个功能
[==========================100.0%==========================]
操作成功完成。
重新启动 Windows 以完成该操作。
是否立即重新启动计算机? (Y/N)
网络学习生 发表于 2020-6-16 14:46
Singulary 发表于 2020-6-16 15:58
bat能搞定干嘛非要exe
SUMI 发表于 2020-6-16 14:46
好深奥的感觉 还是等你们的大神们来玩吧
dxxiong 发表于 2020-6-16 14:52
这个可以学习一下
TempID 发表于 2020-6-16 14:45
mark一个~
城南旧巷手艺人 发表于 2020-6-16 14:54
小巧轻便的工具,感谢分享。
sxp3468 发表于 2020-6-16 14:54
win10报警
不退伍的兵 发表于 2020-6-16 14:58
冲着独一份来个赞!
您需要登录后才可以回帖 登录 | 注册[Register]

本版积分规则

返回列表

RSS订阅|小黑屋|处罚记录|联系我们|吾爱破解 - LCG - LSG ( 京ICP备16042023号 | 京公网安备 11010502030087号 )

GMT+8, 2025-4-26 06:55

Powered by Discuz!

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表