组策略此项默认为Guest,所以脚本直接做清空处理,并刷新策略使策略生效。
- @echo off
- echo [Version]>nl.inf
- echo signature="$CHICAGO$">>nl.inf
- echo Revision=1>>nl.inf
- echo [Privilege Rights]>>nl.inf
- echo SeDenyNetworkLogonRight = >>nl.inf
- secedit /configure /db nl.sdb /cfg nl.inf
- gpupdate /force
- del nl.inf /q
- del nl.sdb /q
- del nl.jfm /q
- pause
|