0

For the reference, there are bunch of irrelevant question when you try to search for generic words windows run app during boot but few dozens I went through are all incorrect since they target the cases when things needs to be ran at startup.

Mine inst.

I need to run some basic operations/program during Windows boot time BEFORE most of the services started. Ideally - before RPCSS (Remote Procedure Call) starts. Testing few different methods shows that this service up and running as early as it gets. So I somehow need to be able to run an executable earlier than that or at least on par.

I probably could make a fake service, screw around with OrderGroups and ServiceGroupOrder, make the service start practically the first and then successfully make it stop/quit after doing the operation but this seems absolute overkill for a simple file copy operation. I also cannot really on any 3rd party solution, this is something that should be doable on stock Windows.

8
  • 1
    This sounds like an XY problem. Why are you trying to mess with files so early in the startup sequence? Why can't you do it later?
    – DavidPostill
    Jun 14, 2020 at 8:43
  • There is no error or confusion in my formulation, I know what I need and I know it can't be done any other way due to dependence on services state. Further meta discussion would be irrelevant.
    – Digika
    Jun 14, 2020 at 8:49
  • Well you could write a batch file that stop the services blocking your file operation, do the file operation and then restart the stopped services. Stick that batch file in your startup folder.
    – DavidPostill
    Jun 14, 2020 at 8:52
  • You cant control RPCSS at all. And stopping other services is dangerously unreliable, depending on the situation they might refuse or get stuck in forever shutdown, especially if there is some pending update operations at the start time- trying to do anything during this state with system might result in softlock/loop. You are assuming what I need when I've already investigated it and came to inevitable conclusion and written my question in plain text.
    – Digika
    Jun 14, 2020 at 8:57
  • What you are trying to do is not possible on a stock windows install. That's why people mess around with rootkits to bypass OS security.
    – DavidPostill
    Jun 14, 2020 at 8:59

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.