how can i put my windows service at the first place(will-be-started-early-than-any-other-windows-services)?

n21k1a jkjkn767c2ok 0 Reputation points
2024-04-10T15:10:08.29+00:00

I want to add my windows service.

I want my windows service is started early than any other windows services.

what can i do?

Windows for business | Windows Client for IT Pros | User experience | Other
{count} votes

2 answers

Sort by: Most helpful
  1. Yanhong Liu 14,310 Reputation points Microsoft External Staff
    2024-04-12T02:58:12.25+00:00

    Hello

    Thank you for posting in Q&A forum.

    This is a similar post for your reference: How to mount multiple vhd(x) before startup by using bcdedit.(as early as i can) - Microsoft Q&A

    I hope the information above is helpful.

    Best Regards,

    Yanhong Liu

    ============================================

    If the Answer is helpful, please click "Accept Answer" and upvote it.


  2. Marcin Policht 77,030 Reputation points MVP Volunteer Moderator
    2024-04-10T17:02:10.4633333+00:00

    In short, you cannot. System-controlled services must be running first.

    To control the sequence of service startup, you can configure other services to be dependent on your service, but that would result in the OS startup failure


    If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.

    hth

    Marcin


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.