开启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"" "
posted @ 2020-01-12 20:29  泡菜男  阅读(348)  评论(0编辑  收藏