Re: Prevent winlogon before a specific program starts from a service
- From: adebaene@xxxxxxxxxxxxxxxx
- Date: 23 Sep 2005 08:08:55 -0700
Anders Jansson wrote:
> Hi!
>
> I would like to prevent users to login, .i.e pressing Ctrl-Alt-Delete and
> give their credentials, until a specific program has started (which is
> started by a service), or after the Service Control Manager database has been
> unlocked, don't know which is best?
>
> The scenario is, I have a service that starts programs that displays Windows
> on the system console, that should be visible to a logged on user. This
> service uses "WinSta0\Default" as the destop session for all these programs,
Are you aware that this won't work on Terminal Services or when Windows
XP fast user switching mechanism is used ?
> but if a user is logged on to quickly, some windows fails to be displayed
> correctly, and even some programs crashes. But if a user waits about 45
> seconds or so, all windows are displayed correctly and all programs are
> behaving correctly! This service is written to logon as a specific local
> account with specific rights (local Administrator by group membership) and
> then starts programs in a batch file as that user. The logged on user is a
> ordinary user, with no Administrators rights, and should be able to use the
> applications started.
> I would like a message dialog saying something like "System is starting,
> please wait.." when Ctrl-Alt-Delete is pressed, then later when all programs
> has started (or one specific) users are allowed to logon by pressing
> Ctrl-Alt-Delete.
IMHO, you're trying to cure the symptom instead of curing the disease.
What you should do is fixing your "launch from a service" system so
that it can launch your programs in every circumstances. What happens
now if the user log off and another user log on?
Wouldn't it far more simple to have in the "Startup" folder of
Everybody's Start Menu a "run as" batch or something similar that would
run the programs when a user log on, instead of relying on a service?
Arnaud
MVP - VC
.
- Prev by Date: Re: Can CreateFile() Return a NULL Handle?
- Next by Date: Re: Can CreateFile() Return a NULL Handle?
- Previous by thread: Re: What's the change?
- Next by thread: Re: Prevent winlogon before a specific program starts from a servi
- Index(es):
Relevant Pages
|