[python-win32] NT service and login prompt

le dahut le.dahut at laposte.net
Wed Oct 1 10:51:47 CEST 2008


Tim Golden wrote :
> 
> Larry Bates wrote:
>> le dahut wrote:
>>> Hello,
>>> Is it possible to tell windows to wait a python service has started 
>>> before the login prompt is displayed ?
>>
>> Probably not, but why would you want to implement something that 
>> does?  Share your use case with us and perhaps we can be of more 
>> assistance.
> 
> Have a look at this thread from earlier this year:
> 
> http://mail.python.org/pipermail/python-win32/2008-June/007686.html
> 
> (which the OP contributed to, by the look of it)
> But I don't think, in the general case, that it's possible.
> 
> OP: weren't you trying to do something fancy with GINA or
> something similar last year? Was it successful?
> 
> TJG
> 
> 

Yes, I was trying to intercept user's logon. I've done it using userinit 
registry key, a python NT service and a python service running on the PDC.

My problem is also that the service has to be available at logon time to 
do some administrative stuff.

It seems that the policy "gpedit" > Computer 
Configuration\Administrative Templates\System\Logon\ "Always wait for 
the network at computer startup and logon" (registry key
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows 
NT\CurrentVersion\Winlogon : SyncForegroundPolicy=1) can help me.

Putting a loop to wait the service is up can also be a good idea.


More information about the python-win32 mailing list