Disable more unwanted services

master
Daniel Berteaud 6 years ago
parent 50613bfda2
commit c33edf5a03
  1. 30
      setup.py

@ -5,20 +5,32 @@ uninstallkey = []
# Service to disable # Service to disable
disabled_services = [ disabled_services = [
'RemoteRegistry', # Remote access to reg 'Mcx2Svc', # Media Center Extender
'WMPNetworkSvc', # Windows Media Share 'WerSvc', # Error reporting
'Mcx2Svc', # Media Center Extender 'WPCSvc', # Parental control
'WerSvc', # Error reporting 'helpsvc', # Help service
'WPCSvc', # Parental control 'diagnosticshub.standardcollector.service', # Microsoft (R) Diagnostics Hub Standard Collector Service
'helpsvc', # Help service 'DiagTrack', # Diagnostics Tracking Service
'DPS', # Windows Diag service 'dmwappushservice', # WAP Push Message Routing Service (see known issues)
'SysMain', # SuperFetcher 'HomeGroupListener', # HomeGroup Listener
'HomeGroupProvider', # HomeGroup Provider
'lfsvc', # Geolocation Service
'MapsBroker', # Downloaded Maps Manager
'NetTcpPortSharing', # Net.Tcp Port Sharing Service
'RemoteAccess', # Routing and Remote Access
'RemoteRegistry', # Remote Registry
'SharedAccess', # Internet Connection Sharing (ICS)
'TrkWks', # Distributed Link Tracking Client
'WMPNetworkSvc', # Windows Media Player Network Sharing Service
'XblAuthManager', # Xbox Live Auth Manager
'XblGameSave', # Xbox Live Game Save Service
'XboxNetApiSvc' # Xbox Live Networking Service
] ]
def install(): def install():
print('Disabling unwanted services') print('Disabling unwanted services')
for service in disabled_services: for service in disabled_services:
print('Disabling %s' % service) print(' Disabling %s' % service)
run(r'sc config %s start= disabled' % service, accept_returncodes=[0,1060]) run(r'sc config %s start= disabled' % service, accept_returncodes=[0,1060])
print('Enabling ping response') print('Enabling ping response')

Loading…
Cancel
Save