Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

disable service on a large group of 2003 servers

Status
Not open for further replies.

kvdv99

Technical User
Jun 9, 2010
3
BE
I have to disable a service on a large group of Windows Server 2003 machines. Too many machines to do this manually.

What is the easiest way to do this?

Thanks,
Kris
 
You can write a script or even a batch file that will read your server list from a text file and then have the SC command stop the service on each server.
 
I'm not that familiar with scripting.
What kind of script are you referring to? Powershell, something else?

Thanks for the input guys!
 
you can use vbscript, powershell whatever but I think a simple good old batch file (call me old school) will work
 
:)

So a simple DOS batch script with the SC command to disable the service? Any idea how I can read a csv file listing all servers inside a batch script? I've never done this.

Thanks for the help,
Kris

 
It's been awhile since I wrote one, but lookup the syntax of the FORFILES command which allows you to read a server list in any standard text format and then pass each item on the list to your command
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top