PowerShell – Windows 7 – Windows Service Cleanup

|

There are many services on Windows 7 that do not need to run, while some suggest disabling the service I tend to go on the side of caution and simply stop and set them to manual startup.

# Stop Services and set to Manual

# Home Group Sharing - start
    Stop-Service HomeGroupProvider
    Set-Service HomeGroupProvider -startuptype "manual"

    Stop-Service HomeGroupListener
    Set-Service HomeGroupListener -startuptype "manual"
    
    Stop-Service SSDPSRV
    Set-Service SSDPSRV -startuptype "manual"

    # Specifically Windows Media Player Network Sharing Services
    Stop-Service WMPNetworkSvc
    Set-Service WMPNetworkSvc -startuptype "manual"
# Home Group Sharing - stop

#Windows Themes
Stop-Service Themes
Set-Service Themes -startuptype "manual"

#Desktop Windows Manager Session Manager
Stop-Service UxSms
Set-Service UxSms -startuptype "manual"

#Application Experience
Stop-Service AeLookupSvc
Set-Service AeLookupSvc -startuptype "manual"

#Block Level Backup Engine Service
Stop-Service wbengine
Set-Service wbengine -startuptype "manual"

#Certificate Propagation
Stop-Service CertPropSvc
Set-Service CertPropSvc -startuptype "manual"

#IP Helper
Stop-Service iphlpsvc
Set-Service iphlpsvc -startuptype "manual"

#Portable Device Enumerator Service
Stop-Service WPDBusEnum
Set-Service WPDBusEnum -startuptype "manual"

#Distributed Link Tracking Client
Stop-Service TrkWks
Set-Service TrkWks -startuptype "manual"

#Protected Storage
Stop-Service ProtectedStorage
Set-Service ProtectedStorage -startuptype "manual"

#Portable Device Enumerator Service
Stop-Service WPDBusEnum
Set-Service WPDBusEnum -startuptype "manual"

#Secondary Logon
Stop-Service seclogon
Set-Service seclogon -startuptype "manual"

#Software Protection
Stop-Service sppsvc
Set-Service sppsvc -startuptype "manual"

#Server
#Stop-Service LanmanServer
#Set-Service LanmanServer -startuptype "manual"

#Tablet PC Input Service
Stop-Service TabletInputService
Set-Service TabletInputService -startuptype "manual"

#TCP/IP NetBIOS Helper
Stop-Service lmhosts
Set-Service lmhosts -startuptype "manual"

#Windows Media Center Receiver Service
Stop-Service ehRecvr
Set-Service ehRecvr -startuptype "manual"

#Windows Media Center Scheduler Service
Stop-Service ehSched
Set-Service ehSched -startuptype "manual"

#Windows Search
#Stop-Service WSearch

#Remote Registry
Stop-Service RemoteRegistry
Set-Service RemoteRegistry -startuptype "manual"

#Windows Time
Stop-Service W32Time
Set-Service W32Time -startuptype "manual"

#Windows Security Center
#Stop-Service wscsvc

#Windows Search
#Stop-Service WSearch
All information on this site is shared with the intention to help. Before any source code or program is ran on a production (non-development) system it is suggested you test it and fully understand what it is doing not just what it appears it is doing. I accept no responsibility for any damage you may do with this code.