disabling and enabling pc services with one click/batch file

Tips and advice for getting the most from Scope. No questions here please.

Moderators: valis, garyb

Post Reply
User avatar
ARCADIOS
Posts: 1339
Joined: Tue Aug 02, 2005 4:00 pm
Location: Glyfada, Athens-Greece
Contact:

disabling and enabling pc services with one click/batch file

Post by ARCADIOS »

create a batch file. name it whatever.bat... for example "STOP SERVICES"

if you like to have a pc for example with minimum services, edit the batch file as follows:

NET STOP "Application Experience"
NET STOP "Application Management"
NET STOP "Background Intelligent Transfer Service"
NET STOP "Cryptographic Services"
NET STOP "Desktop Window Manager Session Manager"
NET STOP "Diagnostic Policy Service"
NET STOP "Diagnostic System Host"
NET STOP "Distributed Link Tracking Client"
NET STOP "DNS Client"
NET STOP "Function Discovery Provider Host"
NET STOP "Function Discovery Resource Publication"
NET STOP "Human Interface Device Access"
NET STOP "IKE and AuthIP Ipsec Keying Modules"
NET STOP "IP Helper"
NET STOP "IPsec Policy Agent"
NET STOP "KtmRm for Distributed Transaction Coordinator"
NET STOP "Network Connections"
NET STOP "Network List Service"
NET STOP "Network Location Awareness"
NET STOP "Offline Files"
NET STOP "Peer Networking Identity Manager"
NET STOP "Portable Device Enumerator Service"
NET STOP "Print Spooler"
NET STOP "Program Compatibility Assistant Service"
NET STOP "Remote Access Connection Manager"
NET STOP "Secondary Logon"
NET STOP "Secure Socket Tunneling Protocol Service"
NET STOP "Security Center"
NET STOP "Server"
NET STOP "Windows Image Acquisition (WIA)"
NET STOP "Shell Hardware Detection"
NET STOP "Windows Media Player Network Sharing Service"
NET STOP "UPnP Device Host"
NET STOP "SSDP Discovery"
NET STOP "System Event Notification Service"
NET STOP "Tablet PC Input Service"
NET STOP "TCP/IP NetBIOS Helper"
NET STOP "Telephony"
NET STOP "Terminal Services"
NET STOP "WebClient"
NET STOP "Windows Connect Now - Config Registrar"
NET STOP "Windows Defender"
NET STOP "Windows Driver Foundation - User-mode Driver Framework"
NET STOP "Windows Firewall"
NET STOP "Base Filtering System"
NET STOP "Windows Search"
NET STOP "Windows Update"
NET STOP "WinHTTP Web Proxy Auto-Discovery Service"

if you want back again the services, create another batch file named restart.bat or whatever and edit it as follows:

NET START "Application Experience"
NET START "Application Management"
NET START "Background Intelligent Transfer Service"
NET START "Base Filtering System"
NET START "Cryptographic Services"
NET START "Desktop Window Manager Session Manager"
NET START "Diagnostic Policy Service"
NET START "Diagnostic System Host"
NET START "Distributed Link Tracking Client"
NET START "DNS Client"
NET START "Function Discovery Provider Host"
NET START "Function Discovery Resource Publication"
NET START "Human Interface Device Access"
NET START "IKE and AuthIP Ipsec Keying Modules"
NET START "IP Helper"
NET START "IPsec Policy Agent"
NET START "KtmRm for Distributed Transaction Coordinator"
NET START "Network Connections"
NET START "Network List Service"
NET START "Network Location Awareness"
NET START "Offline Files"
NET START "Peer Networking Identity Manager"
NET START "Portable Device Enumerator Service"
NET START "Print Spooler"
NET START "Program Compatibility Assistant Service"
NET START "Remote Access Connection Manager"
NET START "Secondary Logon"
NET START "Secure Socket Tunneling Protocol Service"
NET START "Security Center"
NET START "Server"
NET START "Shell Hardware Detection"
NET START "SSDP Discovery"
NET START "System Event Notification Service"
NET START "Tablet PC Input Service"
NET START "TCP/IP NetBIOS Helper"
NET START "Telephony"
NET START "Terminal Services"
NET START "UPnP Device Host"
NET START "WebClient"
NET START "Windows Connect Now - Config Registrar"
NET START "Windows Defender"
NET START "Windows Driver Foundation - User-mode Driver Framework"
NET START "Windows Firewall"
NET START "Windows Image Acquisition (WIA)"
NET START "Windows Media Player Network Sharing Service"
NET START "Windows Search"
NET START "Windows Update"
NET START "WinHTTP Web Proxy Auto-Discovery Service"

this way the services will be restarted again.

it is a good idea to create your own configuration depending on each ones needs. you can just add more or remove others.
i have created a few batch files that i use as switches for enabling and disabling services depending on what i want to do with my pc.

ps. the services above are from vista64.
Last edited by ARCADIOS on Sun Dec 07, 2008 8:39 am, edited 1 time in total.
User avatar
ARCADIOS
Posts: 1339
Joined: Tue Aug 02, 2005 4:00 pm
Location: Glyfada, Athens-Greece
Contact:

Re: disabling and enabling pc services with one click

Post by ARCADIOS »

:) :)
Music Manic
Posts: 1739
Joined: Wed May 15, 2002 4:00 pm
Contact:

Re: disabling and enabling pc services with one click

Post by Music Manic »

Thanks. Will give it a go.
User avatar
ARCADIOS
Posts: 1339
Joined: Tue Aug 02, 2005 4:00 pm
Location: Glyfada, Athens-Greece
Contact:

Re: disabling and enabling pc services with one click

Post by ARCADIOS »

if a service while stopping needs a press Y confirmation in order to stop, it is because another service that deppends on it must be stoped first, so you can change the order of the list as you wish to avoid the press "Y" confirmation.
emphazer
Posts: 98
Joined: Sat Sep 23, 2006 4:00 pm
Location: Germany
Contact:

Re: disabling and enabling pc services with one click/batch file

Post by emphazer »

write it like this
net stop service /YES

the /YES option confirms the command automatically
User avatar
kylie
Rank-o-phile
Posts: 2130
Joined: Tue Jul 25, 2006 4:00 pm
Location: Dresden / Germany

Re: disabling and enabling pc services with one click/batch file

Post by kylie »

to see what the currently running services are named like, issue the net start command without parameters.
you will realize that the names are mostly localized within a non-english windows version. mine is german, and I have entries like "Druckerwarteschlange" :)
so there will be some customizing...
--
I'm sorry, but my karma just ran over your dogma.
Post Reply