Bulk Service Disabler - Disable and set to manual a list of services

Discussion in 'Windows 10' started by NsaFarm, Apr 8, 2017.

  1. NsaFarm

    NsaFarm MDL Junior Member

    Mar 29, 2017
    66
    11
    0
    #1 NsaFarm, Apr 8, 2017
    Last edited by a moderator: Apr 20, 2017
    I've wanted this for re-installs. Nobody made it. Just see comments like.


    Yea, sure guys. I really love all the cruft win10 runs. Appdows apps apps something Luddites as I've read on slashdot.

    Anyways, don't break your system... there is always safe mode I guess :)

    Code:
    
    
    
    ###################################################################################
    #Author: goatse.cx
    #Date: 4/7/17
    #
    #
    #Description: Set services from lists, ie black viper.
    ###################################################################################
    
    
    Push-Location $MyInvocation.setfromlist.Path
    [Environment]::CurrentDirectory = $PWD
    
    $services = gc .\services-disable.txt
    
    $services | foreach-object {
    $svc = $_
        echo "Trying to disable $svc"
    Get-Service -Name $svc | Set-Service -StartupType Disabled
    
    }
    
    
    $manual = gc .\services-manual.txt
    
    $manual | foreach-object {
    $svc = $_
        echo "Setting $svc to manual"
    Get-Service -Name $svc | Set-Service -StartupType Manual
    
    }
    
    $auto = gc .\services-automatic.txt
    
    $auto | foreach-object {
    $svc = $_
        echo "Setting $svc to Automatic"
    Get-Service -Name $svc | Set-Service -StartupType Automatic
    
    }
    
    
    Pop-Location
    [Environment]::CurrentDirectory = $PWD
    
    Read-Host -Prompt "Press Enter to continue"
    
    


    Download:

    mega.nz/#!si4kURCZ!BETKJbYiG59sZa-7_pvdudHQKoOfnKbQ-C84D9RDFcI



    You want to run the batch file as admin and edit the lists to be what you want. Excel or open office equivalent will let you sort the Black Viper csv files and paste into the texts.

    I only have 2 problems:

    1. Some services are owned by system or trusted installer? I get access denied on timebroker and its ilk. They have to be set through the registry.
    2. Some services use an ID based on your system or the version so I can't set Contact_Service_xyd320 programmatically. The viper lists have Service_???, you can delete those or let them make error messages.


    Enjoy!
     
  2. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    47,274
    94,765
    450
    Is this Tell Sell? ;):D:D
     
  3. MonarchX

    MonarchX MDL Expert

    May 5, 2007
    1,732
    313
    60
    Disabling services made my Netflix and Hulu and Pandora apps not work - Even Viewer says RPC call failed, but RPC is enabled and so is the locator. You NEVER know when something you do depends on a service...
     
  4. NsaFarm

    NsaFarm MDL Junior Member

    Mar 29, 2017
    66
    11
    0
    Maybe you disabled something related to DRM. RPC is a framework for programs to talk to each other.

    If you're unsure: mydigitallife.net/script-to-backup-current-start-state-startup-type-of-windows-services

    You could also manually tweak and back up your config then reload it by this.
     
  5. MonarchX

    MonarchX MDL Expert

    May 5, 2007
    1,732
    313
    60
    Hmm... Maybe, but removing/uninstalling WMP was one of the first things I've done (via Windows itself, no tweaks) and BTW, I disagree with your choice of services to leave running... Telemetry? For real, man?
     
  6. NsaFarm

    NsaFarm MDL Junior Member

    Mar 29, 2017
    66
    11
    0
    I took SAFE from black viper. Didn't make any choices. You're supposed to nail down your own list and use it on every subsequent deployment.
     
  7. MonarchX

    MonarchX MDL Expert

    May 5, 2007
    1,732
    313
    60
    You are right - any ideas which services are necessary for Netflix App to work?
     
  8. NsaFarm

    NsaFarm MDL Junior Member

    Mar 29, 2017
    66
    11
    0
    When I opened up 10 in NTlite there were 2 DRM and licensing things for the windows store as well as playready. Not sure which services they are.