RE: Script



A script like this would be relatively simple to write, as long as you know
what services you want to disable. In fact, you don't even need a script...
only a batch file and Administrator rights on the system. The "sc" command
could be used in the batch file to stop and disable the service, as follows:

Stop the service:
sc stop tlntsvr

Disable the service:
sc config tlntsvr start= disabled

That example would stop and disable the "Telnet" service. Or, if you feel
more comfortable with VBScript, you could use that to run shell commands and
pass the list of services in as an array or text file (I'm sure you can do
this in batch scripting, but I don't remember how ATM), then loop through to
stop and disable all of them. As usual, Google is your friend.


-- N/A


-----Original Message-----
From: listbounce@xxxxxxxxxxxxxxxxx [mailto:listbounce@xxxxxxxxxxxxxxxxx] On
Behalf Of Siscar, Emerson E.
Sent: Tuesday, July 24, 2007 11:57 PM
To: security-basics@xxxxxxxxxxxxxxxxx
Subject: Script



Hello to all:



Am not into script writing yet. Can anyone recommend or know where I
could find/get a script that disables windows unnecessary services for
example?



Thank you



Emer



Relevant Pages

  • RE: message and batch file
    ... replace the name of the batch file in the sCmd variable with the ... command line that you had in the batch file. ... Try looking at the examples provided by the MS Technet Script Center: ... > file I was running has a one line command to disables the application.) ...
    (microsoft.public.windows.server.scripting)
  • RE: Disabling USB mass storage
    ... or concerned service depended of user account or computer location in AD ... script try to enable all devices from ... "devcfg disable" it disables all devices and concerned services ... Specify "devcmcfg.vbs disable" as Startup Script parameter value of GPO, ...
    (Focus-Microsoft)
  • Re: Turing of SP2 Firewall via registry entry?
    ... Group Policy that disables the firewall (see WF_XPSP2.doc ... Disabling the Use of Windows Firewall Across Your Network ... you create a script file that is read by ...
    (microsoft.public.windowsxp.security_admin)
  • Re: lets vote for better security
    ... OE-related security vulnerabilities. ... minor change to their install programs to enable MSHTML during the ... is a lone attacker in, say, Pakistan who writes a brand new script and sends ... XP SP2 disables and ...
    (microsoft.public.security)
  • Re: Enabling "distrbuted COM"
    ... Because we have a few thousand machines which have the Components ... script of some sort....? ... disables DCOM: ... You need to remotely change the value of the following registry setting to ...
    (microsoft.public.scripting.wsh)