Some will know all this but it took me quite a while to find it so it may be useful if you don't.
I turn as many Vista services off as possible to improve speed/prevent disc thrash but sometimes, eg when doing a manual update, you need them on again and it's a hastle using the services window. This batch file turns on volume shadow copy, windows update, windows modules installer and Microsoft Software Shadow Copy Provider:
sc config VSS start= demand
sc config wuauserv start= demand
sc config TrustedInstaller start= demand
sc config swprv start= demand
For other services you can get the service name from name in services window by a start/run/cmd then eg
sc getkeyname "Volume shadow copy"
returns VSS
Batch to turn off again after update is same with disabled instead of demand. Note that the space after the = matters! Note also that if not logged on as administrator you must right click and run batch file as administrator.
I turn as many Vista services off as possible to improve speed/prevent disc thrash but sometimes, eg when doing a manual update, you need them on again and it's a hastle using the services window. This batch file turns on volume shadow copy, windows update, windows modules installer and Microsoft Software Shadow Copy Provider:
sc config VSS start= demand
sc config wuauserv start= demand
sc config TrustedInstaller start= demand
sc config swprv start= demand
For other services you can get the service name from name in services window by a start/run/cmd then eg
sc getkeyname "Volume shadow copy"
returns VSS
Batch to turn off again after update is same with disabled instead of demand. Note that the space after the = matters! Note also that if not logged on as administrator you must right click and run batch file as administrator.

that's why my scripts to fire up and stop the sql services in windows7 weren't working! cheers zog.
Comment