16

Well the title says it, in a Windows Service, will the Start Parameters be preserved after a reboot if the Start is of type "Automatic"?

Many Thanks

1 Answers1

22

No. The Service Manager GUI stinks.

If you want to actually save start parameters, then go to \\HKLM\SYSTEM\CurrentControlSet\Services in the registry. Find your service. You can also enter startup parameters as part of the ImagePath key.

enter image description here

Ryan Ries
  • 55,481
  • 10
  • 142
  • 199
  • thanks, so if I set a service to start automatically from within the UI and set there the start parameters, am I supposed to see these appended to the ImagePath in the registry because I don't. Is there anywhere else in the registry where I can see what parameters were set within the UI? Many thanks. – Giuseppe Romagnuolo May 17 '13 at 05:58
  • Yes, in this case, forget the GUI. The GUI sucks. It works for passing in parameters one time, but it will not save them. I'm revising my answer to reflect that. Sorry for the inconvenience. – Ryan Ries May 17 '13 at 13:17