Link to home
Start Free TrialLog in
Avatar of WillP7
WillP7

asked on

XP pro; manually run services in registry?

I have downgraded XP (succesfully!!) and it's working great, a major speed increase!  Except that every time I reboot, I have to go straight to Computer Management "Services" and manually start about ten services (themes, DNS, DHCP, network connections (!!), etc.)  I've done an "sc query" from "cmd" after I get them the way I need them, and exported that to a text, so I have info on most of the services I do need, but I need the location/format to plug them into the registry to make it work.  I'm treading lightly here because registry edits aren't my specialty!  Help greatly appreciated.  =)
Avatar of Brian Pringle
Brian Pringle
Flag of United States of America image

You might be better with a batch file.

1. Create a batch file called "startServices.bat"
2. Add the following line for each service that you want to start (where %servicename% is the short name of the service, not the friendly name)

net start %servicename%

3. Put the batch file somewhere that it will not get deleted.
4. Create a shortcut to the batch file in the Start Menu \ Startup folder.

C:\Documents and Settings\All Users\Start Menu\Startup
Or, you could create each service individually.  They are in the registry under

HKLM\System\CurrentControlSet\Services

The "ImagePath" is the command used to run the program that is going to be run as a service.
Avatar of WillP7
WillP7

ASKER

btpringle - thanks!  I'm very close to getting it..

Can you give me an example, say for my network connections "netman" of how the string key would be made?  Are all going to be using "ImagePath"?
Here is the exported "netman" registry key.

The "ImagePath" *can* be used to run the service and is the easiest way to do it.  If you are talking about built-in Windows components, you will have to export the key on one computer and import it into yours.
Windows Registry Editor Version 5.00
 
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Netman]
"DisplayName"="@%SystemRoot%\\system32\\netman.dll,-109"
"ImagePath"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,\
  74,00,25,00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,73,\
  00,76,00,63,00,68,00,6f,00,73,00,74,00,2e,00,65,00,78,00,65,00,20,00,2d,00,\
  6b,00,20,00,4c,00,6f,00,63,00,61,00,6c,00,53,00,79,00,73,00,74,00,65,00,6d,\
  00,4e,00,65,00,74,00,77,00,6f,00,72,00,6b,00,52,00,65,00,73,00,74,00,72,00,\
  69,00,63,00,74,00,65,00,64,00,00,00
"Description"="@%SystemRoot%\\system32\\netman.dll,-110"
"ObjectName"="LocalSystem"
"ErrorControl"=dword:00000001
"Start"=dword:00000003
"Type"=dword:00000020
"DependOnService"=hex(7):52,00,70,00,63,00,53,00,73,00,00,00,6e,00,73,00,69,00,\
  00,00,00,00
"ServiceSidType"=dword:00000001
"RequiredPrivileges"=hex(7):53,00,65,00,49,00,6d,00,70,00,65,00,72,00,73,00,6f,\
  00,6e,00,61,00,74,00,65,00,50,00,72,00,69,00,76,00,69,00,6c,00,65,00,67,00,\
  65,00,00,00,53,00,65,00,43,00,68,00,61,00,6e,00,67,00,65,00,4e,00,6f,00,74,\
  00,69,00,66,00,79,00,50,00,72,00,69,00,76,00,69,00,6c,00,65,00,67,00,65,00,\
  00,00,00,00
"FailureActions"=hex:80,51,01,00,00,00,00,00,00,00,00,00,03,00,00,00,14,00,00,\
  00,01,00,00,00,64,00,00,00,01,00,00,00,64,00,00,00,00,00,00,00,00,00,00,00
 
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Netman\Parameters]
"ServiceDll"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,\
  00,74,00,25,00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,\
  6e,00,65,00,74,00,6d,00,61,00,6e,00,2e,00,64,00,6c,00,6c,00,00,00

Open in new window

If you are manually starting them in Computer Management, then they are already created.  You just need to start them.  I would stick with the batch file.
When you open Computer Management and look at the services, double-click on one and look at the Startup Type and set it to automatic.  That will cause them to automatically start when you turn on the computer.
Avatar of WillP7

ASKER

the strange thing is, they are on automatic!  And they don't start automatically.  That's where I'm confused.  A batch file will work then, because it was no fun to go get a bunch of keys off another computer, and fail.  I know it maybe should be working, but nay. ;)  Can you give some detail on how to make this batch file?  The only things I do have are the "sc query" data and a general understanding of what I need for the computer to function!  Even things like "themes" set on "automatic" aren't started when the computer boots......

So for the startServices.bat

net start %Netman%
net start %Themes%
net start %WZCSVC%

correct?

Thanks btpringle!
ASKER CERTIFIED SOLUTION
Avatar of Brian Pringle
Brian Pringle
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of WillP7

ASKER

well very close but you got me close enough!  YES THANKYOU a bat file was the easiest option.  I wanted a cleaner appearance, but this is kinda retro... I'LL TAKE IT!

Actually "net start [anything]" starts my windows audio, so my .bat came out being -

sc start ACS
sc start Dhcp
sc start Dnscache
sc start Netman
sc start RasMan
sc start Themes
sc start winmgmt
sc start wmi
sc start WZCSVC

Thanks very much, this was waaay easier than messing with registry keys that weren't responding positiviely.
You can also modify the code a little to make it prettier and to make it close automatically.

Add this at the beginning... (hides output of commands)

@echo off



Add this at the end  (Forces window to close when done)

Exit


Alternatively, you could add "Pause" instead of "Exit", if you want to see the window before it closes.
Avatar of WillP7

ASKER

U the man.  Thanks
Avatar of Praveen Kumar Bonala
why don't you change start type of the services.

Just open services.msc, go to service which you want start automatically after system reboots, right click the service and go to propertires, and then select the start up type as Automatic.

your service will starts automatically once you restarted your system, no need to start service manually.

revert for clarifications.
I've requested that this question be deleted for the following reason:

No comment has been added to this question in more than 21 days, so it is now classified as abandoned.

I have recommended this question be closed as follows:

Not enough information to confirm an answer.

If you feel this question should be closed differently, post an objection and a moderator will read all objections and then close it as they feel fit. If no one objects, this question will be closed automatically the way described above.

Experts-Exchange Auto Deleter