Want a script to stop non-Traktor essential Windows services?
Page 1 of 3 123 LastLast
Results 1 to 10 of 30
  1. #1
    DJTT Scribe Mod smiTTTen's Avatar
    Join Date
    Jan 2011
    Location
    Then: UK. Now: US.
    Posts
    1,937

    Default Want a script to stop non-Traktor essential Windows services?

    If you are having performance issues with your S4 and are running a Windows system then this script may help. Please also check my sticky in this forum for a guide on configuring your system. Nothing here is proven, guaranteed or supported. At worst you waste an evening playing with your computer to no avail. At best you avoid taking your S4 back or forking out for a new laptop.

    THIS IS NOT A THREAD TO BITCH ABOUT NI DRIVERS, SUPPORT OR THEIR WINDOWS CODING SKILLS.

    ***If you read past this line it will be at your own risk***


    This is the script that myself and MartinK have been playing with. Martin is still doing some more testing but for those that want to try something to automate the stopping of most non-Traktor essential services, keep reading...

    This script kills off your networking services and pretty much everything else Traktor doesn't need. This is the 2nd version of the script that also offers to re-start your services. Thanks to Stashe on the NI forum for the update. This is clearly someone who knows their scripting onions!


    Copy the following to into a notepad file:

    @ECHO OFF

    ::============================ ===========

    :: **** BEGIN AUTO ELEVATION PROMPT ****

    :: This makes the batch file prompt for elevated permissions
    :: on Windows Vista or Windows 7, then re-run itself

    VER | FINDSTR /IL "5.1." > NUL
    IF %ERRORLEVEL% EQU 0 SET Version=XP

    VER | FINDSTR /IL "5.2." > NUL
    IF %ERRORLEVEL% EQU 0 SET Version=2003

    VER | FINDSTR /IL "6.0." > NUL
    IF %ERRORLEVEL% EQU 0 SET Version=Vista

    VER | FINDSTR /IL "6.1." > NUL
    IF %ERRORLEVEL% EQU 0 SET Version=7

    If "%Version%"=="XP" GoTo SkipElevation
    If "%Version%"=="2003"? GoTo SkipElevation
    PushD "%~dp0"?
    If Exist "%~0.ELEVATED" GoTo SkipElevation

    :: Have to escape double quotes because they are
    :: passed to Cmd.exe via ShellExecute

    Set CMD_Args=%0 %*
    Set CMD_Args=%CMD_Args:"="%
    Set ELEVATED_CMD=PowerShell -Command (New-Object -com 'Shell.Application').ShellExec ute('Cmd.exe', '/C %CMD_Args%', '', 'runas')
    Echo %ELEVATED_CMD% >> "%~0.ELEVATED"

    :: If there are single quotes in the arguments, this will fail

    Call %ELEVATED_CMD%
    Exit
    SkipElevation
    If Exist "%~0.ELEVATED" Del "%~0.ELEVATED"

    :: **** END AUTO ELEVATION PROMPT ****


    ::============================ ============


    SET Option=
    IF NOT '%1'=='' GOTO QUIT

    :MENU
    CLS
    ECHO. Welcome to the Windows Services Tool for Traktor S4 users.
    ECHO. Please select one of the numbers below to begin!
    ECHO.
    ECHO.
    ECHO. 1. Stop all non-Essential Windows Services
    ECHO. 2. Start all non-Essential Windows Services
    ECHO. 3. Quit this Script
    ECHO.
    ECHO.
    SET /P Input=Which option would you like to perform?:
    IF %Input% == 1 GOTO STOPSVC
    IF %Input% == 2 GOTO STARTSVC
    IF %Input% == 3 GOTO QUIT

    STOPSVC
    CLS
    ECHO.
    ECHO. STOPPING all non-Traktor services!
    ECHO.
    PAUSE

    rem Stopping Windows Firewall and Windows Defender...
    net stop mpssvc
    net stop windefend

    rem Stopping DHCP Client and Wireless LAN...
    net stop WinHttpAutoProxySvc
    net stop dhcp
    net stop wlansvc

    rem Stopping Other Network Related Services...
    net stop "dns cache"
    net stop netprofm
    net stop nlasvc
    net stop netman
    net stop iphlpsvc
    net stop lanmanworkstation
    net stop "Bonjour Service"
    net stop dhcp
    net stop nsi
    net stop lanmanserver
    net stop lmhosts
    net stop "shared access"
    net stop nettcpportsharing
    net stop remoteaccess
    net stop alg
    net stop bits
    net stop peerdistsvc
    net stop certpropsvc
    net stop homegrouplistener
    net stop homegroupprovider
    net stop winrm
    net stop Broswer
    net stop TrkWks


    rem Stopping other Windows Services...
    net stop wscsvc
    net stop DPS
    net stop CscService
    net stop WPDBusEnum
    net stop ProtectedStorage
    net stop RemoteRegistry
    net stop seclogon
    net stop wscsvc

    rem Stopping Blue Tooth Services
    net stop bthserv

    rem Stopping Remote Desktop and Remote Assistance Services
    net stop sessionenv
    net stop termservice

    rem Stopping Windows Update Services
    net stop wuauserv

    rem Stopping iPod Services
    net stop "ipod service"
    net stop "Apple Mobile Device"

    rem Stopping Stuff that makes your PC look nice...
    net stop themes
    net stop sensrsvc
    net stop AeLookupSvc
    net stop UxSms

    rem Stopping Scanner, Camera and other imaging Services...
    net stop stisvc

    rem Stopping Windows Media Playing Sharing...
    net stop WMPnetworksvc

    rem Stopping Tablet Device Support...
    net stop tabletinputservice

    rem Stopping Other Windows Services...
    net stop bdesvc
    net stop wbengine
    net stop uiodetect
    net stop defragsvc
    net stop axinstsv
    net stop "w32time"
    net stop wercplsupport


    rem Stopping Printer Services
    net stop spooler

    ECHO.
    ECHO.
    ECHO. PROCESS COMPLETE!
    ECHO.
    PAUSE
    GOTO MENU

    STARTSVC
    CLS
    ECHO. STARTING all non-Traktor services!
    PAUSE

    rem Starting Windows Firewall and Windows Defender...
    net start mpssvc
    net start windefend

    rem Starting DHCP Client and Wireless LAN...
    net start WinHttpAutoProxySvc
    net start dhcp
    net start wlansvc

    rem Starting Other Network Related Services...
    net start "dns cache"
    net start netprofm
    net start nlasvc
    net start netman
    net start iphlpsvc
    net start lanmanworkstation
    net start "Bonjour Service"
    net start dhcp
    net start nsi
    net start lanmanserver
    net start lmhosts
    net start "shared access"
    net start nettcpportsharing
    net start remoteaccess
    net start alg
    net start bits
    net start peerdistsvc
    net start certpropsvc
    net start homegrouplistener
    net start homegroupprovider
    net start winrm
    net start Broswer
    net start TrkWks


    rem Starting other Windows Services...
    net start wscsvc
    net start DPS
    net start CscService
    net start WPDBusEnum
    net start ProtectedStorage
    net start RemoteRegistry
    net start seclogon
    net start wscsvc

    rem Starting Blue Tooth Services
    net start bthserv

    rem Starting Remote Desktop and Remote Assistance Services
    net start sessionenv
    net start termservice

    rem Starting Windows Update Services
    net start wuauserv

    rem Starting iPod Services
    net start "ipod service"
    net start "Apple Mobile Device"

    rem Starting Stuff that makes your PC look nice...
    net start themes
    net start sensrsvc
    net start AeLookupSvc
    net start UxSms

    rem Starting Scanner, Camera and other imaging Services...
    net start stisvc

    rem Starting Windows Media Playing Sharing...
    net start WMPnetworksvc

    rem Starting Tablet Device Support...
    net start tabletinputservice

    rem Starting Other Windows Services...
    net start bdesvc
    net start wbengine
    net start uiodetect
    net start defragsvc
    net start axinstsv
    net start "w32time"
    net start wercplsupport


    rem Starting Printer Services
    net start spooler

    ECHO.
    ECHO.
    ECHO. PROCESS COMPLETE!
    ECHO.
    PAUSE
    GOTO MENU

    :QUIT



    [Save the file as Killscript.bat (or whatever you want to call it, just make sure it has the .bat)

    To launch the script double click on it.

    What you will see:

    Error messages relating to services that don't exist on your machine or services that are already stopped (or were never started). You may also see prompts asking you if you want to disable a dependent service. Hit Y/Yes.

    This script will not stop Anti-Virus/Security and other third party services. I would love to include something that does but I have a job and a family... It will however knock out Windows Defender and Windows Firewall.

    No permanent changes are made to your machine. When you want to revert back to running all services, simply reboot.

    Please don't use this script if you are worried about Windows acting funny once you run it . We have done some basic testing but it's no Gamebooster. If you do play with it, let us know if it helps or not.
    Last edited by smiTTTen; 01-24-2011 at 11:26 AM. Reason: updated script
    Beats By Dre is like audio flu for your balls.

  2. #2
    Tech Guru Yul's Avatar
    Join Date
    Sep 2009
    Location
    Aix-en-Provence, France
    Posts
    1,175

    Default

    I won't use your script for personal reason but apart from that Sir,
    YOU ARE A STAR!!!

    Great post.

  3. #3
    Tech Guru
    Join Date
    Jan 2010
    Posts
    2,015

    Default

    yeah man, props all the Windows help you have provided.
    SSL - DJM 800 - Technic 1200's - X1 - ITCH - NS6 - VCI-300

  4. #4
    Tech Wizard
    Join Date
    Jan 2011
    Location
    D.C./Baltimore
    Posts
    86

    Default

    Thank you so much!

  5. #5
    DJTT Scribe Mod smiTTTen's Avatar
    Join Date
    Jan 2011
    Location
    Then: UK. Now: US.
    Posts
    1,937

    Default

    You are more than welcome and thanks Yul and Haze from the props - I have a lot of respect for you guys. I am enjoying looking into the Windows stuff and I will be coming to you for help as quite frankly, my mixes sound like my 2 year old going to town on the TV remote while fighting with the dog
    Beats By Dre is like audio flu for your balls.

  6. #6
    Tech Wizard
    Join Date
    Jan 2011
    Location
    D.C./Baltimore
    Posts
    86

    Default

    hmm well I just tried it on my windows xp machine and it fails to launch. command prompt pops up for a second before terminating itself. any suggestions?

  7. #7
    Tech Wizard
    Join Date
    Jan 2011
    Location
    D.C./Baltimore
    Posts
    86

    Default

    well I took out all the elevation commands and was able to get to the main selection prompt screen. but simply imputing a number does nothing the script quits but if I input anything EXCEPT the numbers 1,2 or 3 it will successfully begin stopping the services but can not start the services again (unless reboot)...I'm not very knowledgeable on scripting but any advice would be greatly appreciated! Also, keep up the good work on this script I see this as being useful for many window/traktor users!

  8. #8
    DJTT Scribe Mod smiTTTen's Avatar
    Join Date
    Jan 2011
    Location
    Then: UK. Now: US.
    Posts
    1,937

    Default

    I think I responded on NI....
    Beats By Dre is like audio flu for your balls.

  9. #9
    Tech Wizard
    Join Date
    Jan 2011
    Location
    D.C./Baltimore
    Posts
    86

    Default

    ^haha u did thanks!

  10. #10
    DJTT Scribe Mod smiTTTen's Avatar
    Join Date
    Jan 2011
    Location
    Then: UK. Now: US.
    Posts
    1,937

    Default A result.

    Vice was good enough to post his results of the script on the NI forum.

    From: http://www.native-instruments.com/fo...d.php?t=128527

    "Well I decided to use the only laptop I have (work provided lol) as I wait for all these new sandy bridge laptops to start trickling in. the laptop is a Dell Latitude E5400 with 2 GB ram and a core 2 duo cpu. If i dont disable some of these unnecessary services I will get CPU spikes along with occasional pop and crack in the sound while im playing. So this script makes it really nice and fast to get traktor up and running and it runs flawlessly! sure there might be the occasional cpu spike (not nearly as bad as before) but no pops/cracks or nothing in the sound.

    plus its really nice that i dont have to make new windows profile with all this stuff disabled just to hop on my S4, all i gotta do is run this script!"


    Seems it can be done with some string and a few bottle-tops. Thanks to Stashe on the NI Forum for his advanced codery.
    Beats By Dre is like audio flu for your balls.

Page 1 of 3 123 LastLast

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •