Security Basics mailing list archives

Re: Scripting to disable services


From: Pranay Kanwar <warl0ck () metaeye org>
Date: Thu, 20 Sep 2007 03:14:58 +0530

Hi,

You can use the sc utility shipped with windows.

http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/sc.mspx?mfr=true

Put the services list in a file, services.txt

for /f %service in (services.txt) do sc config %service start=disabled

twofish () gmail com wrote:
Howdy!

I'm trying to find a way to script a mass disable of services on a series of standalone WinXP SP2 boxes.

I need to be able to be run it locally under admin, without installing additional software (i.e. default XP SP2).

Need to disable about 25 services. 

Additionally, anyone with knowledge of systems set up under NISPOM standards:  I'm getting a TON of 560 failures.  
Any techniques on audit log reductions?

Thanks!
d




-- 
[ Twice the pride, double the fall. ]
[ warl0ck // MSG                    ]
[ http://www.metaeye.org            ]


Current thread: