Windows XP服务选项配置

转载自百度知道,仅供个人学习之用。
 
以下是设置范例,以XPSp2为蓝本,可比对所用的系统进行增删和修改。注:未加入XPSP2的自动更新、安全中心、防火墙。  
  sc config Alerter start= demand    

  sc config TrkWks start= demand    

  sc config helpsvc start= demand    

  sc config PolicyAgent start= demand    

  sc config dmserver start= demand    

  sc config WmdmPmSn start= demand    

  sc config Spooler start= demand    

  sc config RemoteRegistry start= demand    

  sc config NtmsSvc start= demand    

  sc config seclogon start= demand    

  sc config Schedule start= demand    

  sc config WebClient start= demand    

  sc config W32Time start= demand    

  sc config WZCSVC start= demand 

  sc config ERSvc start= demand    

  sc config Themes start= demand    

  sc config FastUserSwitchingCompatibility start= disabled    

  sc config Messenger start= disabled    

  sc config ProtectedStorage start= disabled 

  sc config SSDPSRV start= disabled    

  sc config TermService start= disabled    

  sc config ShellHWDetection start= disabled    

  如果需要立即关闭服务也可把以下代码跟在上面的代码之后 

  sc stop W32Time    

  sc stop ShellHWDetection    

  sc stop TrkWks 

  sc stop helpsvc 

  sc stop dmserver 

  sc stop PolicyAgent    

  sc stop Spooler    

  sc stop RemoteRegistry    

  sc stop seclogon    

  sc stop Schedule    

  sc stop WZCSVC 

  sc stop ERSvc    

  sc stop Themes    

  sc stop FastUserSwitchingCompatibility    

  sc stop ProtectedStorage    

  sc stop SSDPSRV    

  sc stop WebClient    

  最后把修改好之后的代码存为services.cmd,在以后进行服务设置时,直接运行事先保存好的批处理文件就可以做到事半功倍了。
posted @   TechStone  阅读(172)  评论(0编辑  收藏  举报
编辑推荐:
· 如何编写易于单元测试的代码
· 10年+ .NET Coder 心语,封装的思维:从隐藏、稳定开始理解其本质意义
· .NET Core 中如何实现缓存的预热?
· 从 HTTP 原因短语缺失研究 HTTP/2 和 HTTP/3 的设计差异
· AI与.NET技术实操系列:向量存储与相似性搜索在 .NET 中的实现
阅读排行:
· 周边上新:园子的第一款马克杯温暖上架
· Open-Sora 2.0 重磅开源!
· .NET周刊【3月第1期 2025-03-02】
· 分享 3 个 .NET 开源的文件压缩处理库,助力快速实现文件压缩解压功能!
· [AI/GPT/综述] AI Agent的设计模式综述
点击右上角即可分享
微信分享提示