Results 1 to 6 of 6

Thread: Login to system from service?

  1. #1

    Thread Starter
    PowerPoster i00's Avatar
    Join Date
    Mar 2002
    Location
    1/2 way accross the galaxy.. and then some
    Posts
    2,390

    Login to system from service?

    I have a windows service and want to automatically log a user into windows from it - I have seen this done with logmein etc...

    I have looked into GINA and CredentialProviders, but haven't really found an article on how to do this; most forums just say "look into GINA and CredentialProviders"

    I know the username I want to log in and the user will ALWAYS have no password.

    Any help would be appreciated.

    Thanks,
    Kris

  2. #2
    PowerPoster dunfiddlin's Avatar
    Join Date
    Jun 2012
    Posts
    8,245

    Re: Login to system from service?

    I know the username I want to log in and the user will ALWAYS have no password
    Not make sense. If the Windows service is running then someone's already logged in. As there's no password involved, what need is their for this user to log in from a service rather than just being the user automatically logged in in order to start the service that you don't actually need because they're logged in already? Now I've even confused myself!
    As the 6-dimensional mathematics professor said to the brain surgeon, "It ain't Rocket Science!"

    Reviews: "dunfiddlin likes his DataTables" - jmcilhinney

    Please be aware that whilst I will read private messages (one day!) I am unlikely to reply to anything that does not contain offers of cash, fame or marriage!

  3. #3
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649

    Re: Login to system from service?

    Quote Originally Posted by dunfiddlin View Post
    If the Windows service is running then someone's already logged in.
    That's not true. The Windows services that are set to auto start will start when Windows starts regardless if you login or not.

    Can't you simply setup the computer to auto login as this user? I've never dabbled with CredentialProviders and the SDK for it is all in C++ but the existing providers are just COM objects so I suppose you could use them from VB but I don't know enough about them to provide any more help.

  4. #4

    Thread Starter
    PowerPoster i00's Avatar
    Join Date
    Mar 2002
    Location
    1/2 way accross the galaxy.. and then some
    Posts
    2,390

    Re: Login to system from service?

    Quote Originally Posted by Joacim Andersson View Post
    That's not true. The Windows services that are set to auto start will start when Windows starts regardless if you login or not.

    Can't you simply setup the computer to auto login as this user? I've never dabbled with CredentialProviders and the SDK for it is all in C++ but the existing providers are just COM objects so I suppose you could use them from VB but I don't know enough about them to provide any more help.
    .. because I don't want the box to auto login - and I want it so that when it's locked it can be logged in with a device that isn't a keyboard or a mouse.

    Any more ideas?
    Kris

  5. #5
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649

    Re: Login to system from service?

    That sounds as if you want to create your own credential provider. I'm not 100% sure but I think you need to turn to C++ for that. Have you tried downloading the SDK?

  6. #6

    Thread Starter
    PowerPoster i00's Avatar
    Join Date
    Mar 2002
    Location
    1/2 way accross the galaxy.. and then some
    Posts
    2,390

    Re: Login to system from service?

    I was hoping that there were c++ GINA apps to do this that allowed API access to do what I want through managed code (pGINA does this kind of stuff but doesn't allow for what I want ... it allows you to validate a login against other credentials, eg alowing a master password to unlock all accounts, but still requires user interaction)

    Kris

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width