Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to write a Vista service optimization script

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

This article mainly shows you "how to write a Vista service optimization script", the content is easy to understand, clear, hope to help you solve your doubts, let the editor lead you to study and learn "how to write a Vista service optimization script" this article.

I often turn off some unused services in vista to save some memory, and it's too troublesome to change it manually. I spent some time tonight to make an automatic optimization and restore script.

Unwanted services can be automatically prohibited

You can restore the default settings of vista installation

Administrator permission is required to run

Features: it can be easily expanded by modifying the list of services, and can be easily ported to xp

@ echo off

Goto start

: Copyright

Echo--

Echo--

Echo-Windows Vista Home Basic-

Echo-Service Optimization Tools-

Echo--

Echo-Copyright y97523 [BCG]-

Echo-china 2007-3-11-

Echo--

Echo--

Echo please run this as Administor!

Echo.

GOTO: EOF

: start

: init

Set svrlst=svr.lst

Echo; > svrlst%

Echo;; sevice name,start type (auto,demand,delayed-auto);; > svrlst%

Echo; > svrlst%

Echo DPS,auto > > svrlst%

Echo; WdiSystemHost,demand > > svrlst%

Echo TrkWks,auto > > svrlst%

Echo IKEEXT,auto > > svrlst%

Echo iphlpsvc,auto > > svrlst%

Echo PolicyAgent,auto > > svrlst%

Echo WPDBusEnum,auto > > svrlst%

Echo Spooler,auto > > svrlst%

Echo EMDMgmt,auto > > svrlst%

Echo LanmanServer,auto > > svrlst%

Echo; SSDPSRV,demand > > svrlst%

Echo TabletInputService,auto > > svrlst%

Echo lmhosts,auto > > svrlst%

Echo; TapiSrv,demand > > svrlst%

Echo WebClient,auto > > svrlst%

Echo WerSvc,auto > > svrlst%

Echo stisvc,auto > > svrlst%

Echo LanmanWorkstation,auto > > svrlst%

Echo W3SVC judicial auto > > svrlst%

Rem type svrlst%

: choise

Cls

Call: Copyright

Echo Please Select your Choise

Set / p choise= Optimization Service (O) / Restore Default Service Setting (R) / Exit (X):

If / I "% choise%" = = "o" goto Optimization

If / I "% choise%" = = "r" goto restore

If / I "% choise%" = = "x" goto exit

Goto choise

: Optimization

Echo-Start Optimization Service-

For / f "eol=; tokens=1,2* delims=,"% I in (% svrlst%) do echo% I: & & sc config "% I" start= disabled

Echo.

Echo-Optimization Completed,Check Any Error-

Echo push any key to return!

Pause > nul

Goto choise

: restore

Echo-Restore Default Service-

For / f "eol=; tokens=1,2* delims=,"% I in (% svrlst%) do echo% I: & & sc config "% I" start=% j

Echo.

Echo-Restore Completed,Check Any Error-

Echo push any key to return!

Pause > nul

Goto choise

: exit

Del% svrlst% / Q

The above is all the contents of the article "how to write a Vista service optimization script". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report