Search This Blog

Tuesday, October 25, 2011

Disable Services Using Command line

 

Alright. Just received a request to disable services for security hardening.

Well, 1 VM = 6 services need to disable.

144 VM = 864 services need to disable.

Next question, why don’t i use group policy?. Well, due to unavoidable circumstance i cannot use group policy. Wow 864 times of configuration is a lot of work. The best way, is write a script to disable the services.

1. Check the service name from services.msc

image

Example of services:-

Microsoft iSCSI Initiator
Network Access Protection
RPC Locator
Smart Card
Smart Card Removal Policy
SNMP Trap

Command:-

sc config MSiSCSI start= disabled
sc config napagent start= disabled
sc config RpcLocator start= disabled
sc config SCardSvr start= disabled
sc config SCPolicySvc start= disabled
sc config SNMPTRAP start= disabled
pause

You can configure startup to be “auto” | “disable” | “demand” | “delayed-auto”

Save to batch file and execute to the entire VMs.

4 comments:

  1. Gone are the days for profound Link Buildings. Clients are requesting stages where they can share their perspectives and surveys on items and administrations. What's more, our confided in SEO benefits in India causes them in conveying those stages. Which empowers us to convey unrivaled outcomes and monstrous online incomes for our customers and an extraordinary brand encounters to their clients.
    search engine optimization

    ReplyDelete