How can I prevent users from logging into a PC until a particular Windows Service has started?

Posted on 2005-04-28
Last Modified: 2008-02-07
I want to put a dependency for the Logon Screen's appearance on a the start
of a particular service.

How can I do this?


Question by:gswitz
    LVL 4

    Accepted Solution

    Create your own gina.dll which is the dll that shows the dialog to log in.

    See <> for documentation about GINA.

    See <> for a working example.

    Good luck, it is quite hard.
    LVL 4

    Expert Comment

    LVL 7

    Expert Comment

    What OS are you targeting?  While writing your own GINA is a definite solution, I wonder if it might not be easier to just require the local NETLOGON service to wait on your specific service?  If you're using Win2K or newer, you can easily view the dependencies for a given service by running services.msc.  Adding a dependency is not much more challenging, but I don't think that there is a UI.  You can view the appropriate data at HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Netlogon\DependOnService in the registry.  The name entered here should be the short name of the service (as specified in the Services database).  Good luck!

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Top 6 Sources for Identifying Threat Actor TTPs

    Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

    Suggested Solutions

    Title # Comments Views Activity
    either24  challenge 19 73
    abstract class with all non abstract mentods 6 58
    MaxSpan challenge 9 50
    stringclean challenge 26 43
    Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
    This is about my first experience with programming Arduino.
    Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
    In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

    761 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    8 Experts available now in Live!

    Get 1:1 Help Now