本脚本实现关闭不安全的服务并将这些服务改为禁用,2008R2、2012、2012R2实测可用。
sc stop Browser sc stop Spooler sc stop RemoteRegistry sc stop LanmanServer sc stop ShellHWDetection sc stop Schedule sc stop lmhosts sc stop LanmanWorkstation sc config Browser start=disabled sc config Spooler start=disabled sc config RemoteRegistry start=disabled sc config LanmanServer start=disabled sc config ShellHWDetection start=disabled sc config Schedule start=disabled sc config lmhosts start=disabled sc config LanmanWorkstation start=disabled pause