开启WIndows10 未经身份验证的来宾访问策略以及SMB1

打开记事本编辑保存至.vbs

以管理员身份运行

Set obj = createobject("wscript.shell")
obj.run ("reg add HKLM\SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Parameters /v AllowInsecureGuestAuth /t REG_DWORD /d 1 /f")
obj.run "PowerShell -Command ""Enable-WindowsOptionalFeature -Online -FeatureName SMB1Protocol"" "

猜你喜欢

转载自www.cnblogs.com/lcxtc0324/p/12184598.html