rem Stop any service that might slow down Windows or the LAN

@rem Check for admin rights
@fsutil dirty query %systemdrive% >nul 2>&1
@IF ERRORLEVEL 1 goto adminerror
goto adminok

:adminerror
@echo The script must be run by an administrator
@pause
@goto end

:adminok

rem bits: background intelligent transfer: Load stuff from M$ during updates
rem bthserv: bluetooth
rem sysmain: superfetch: Takes lot of resource to preload favourite applications
rem wsearch: Index files on the disk
rem wuauserv: Windows update

rem Remove any trigger that should start the service
sc triggerinfo bits delete
sc triggerinfo bthserv delete
sc triggerinfo sysmain delete
sc triggerinfo wsearch delete
sc triggerinfo wuauserv delete

rem Disable service
sc config bits start=disabled
sc config bthserv start=disabled
sc config sysmain start=disabled
sc config wsearch start=disabled
sc config wuauserv start=disabled

rem Make sure it is stoped now 
sc stop bits
sc stop bthserv
sc stop sysmain
sc stop wsearch
sc stop wuauserv

:end
