execute script before user-login

G

Gerhard Schaden

hi,
is it possible to execute a script before a user can logon. I tried
with gpo-startup scripts but they may be executed afterwards. The same
thing with services, or is it possible to make dependency for the
winlogon program.

I found an other post,
http://groups.google.at/groups?q=de...=OS#[email protected]&rnum=2
where rene had the possiblity to change his custom shell to wait for
the specific service, but i don't want to code a custom shell

-GES
 
S

Sean Gahan

Gerhard,
Make the script into a service; that way no one has to be logged in to
manage the device.

Regards,

Sean Gahan
 
K

KM

Gerhard,
hi,
is it possible to execute a script before a user can logon. I tried
with gpo-startup scripts but they may be executed afterwards. The same
thing with services,

If you read the thread you mentioned carefully, service dependencies are mentioned there.
or is it possible to make dependency for the winlogon program.

If you implement what you need as service, it will be not launched depending on winlogon or vice versa. However, regardless of
whther user logs in or not, the service will be started. Isn't that what you need?
If not, could you tell us more exactly what you want to accomplish? Why you need something to be launched before Winlogon?
If you tell us, we may suggest more appropriate solution.
 
S

Sean Gahan

George,
Can you give me some details on how this application starts.

Regards,

Sean Gahan
 
S

Sean Gahan

Gerhard,
You might try running the service under the Local system account. This
should run before you can log in.

Regards,

Sean Gahan


Gerhard Schaden said:
the problem is that i copy the user profiles, which the user needs to log
in. it cannot be done by a service, because a service may also start after a
user has logged in.
 
G

George

You can wirte an application, it runs when it received a power up IRP. I
don't certain whether it can work :)
 
K

KM

I guess Gerhard's concern was that the profile is locked during/after user
log on and the service may fail to copy the files.

Gerhard,
Have you though of replacing GINA.dll ? then you will have more control over
inlogon and you can delay user logon until you are done with all steps you
have to perfrom.
Read carefully about the User Authentication on NT/XP:
http://msdn.microsoft.com/library/en-us/security/security/using_authentication.asp

Particulary, you may be interesting in implementing custom WlxInitialize
Gina API:
http://msdn.microsoft.com/library/en-us/security/security/implementing_wlxinitialize.asp
(or WlxLoggedOnSAS).

Here is how you extract the profile path from a Gina:
http://support.microsoft.com/default.aspx?scid=kb;EN-US;142790

Hope this helps,
KM
 
S

Sean Gahan

KM,
You make a good point. I had not thought of replacing the GINA.dll, I was
stuck on the service idea.

Regards,

Sean Gahan
 
G

Guest

hi,

thanks for all the answers i solved the problem by replacing gina.dll with my own. I used the ginastub example, and it works very well. :)

-GES
 
G

Guest

hi,

thanks for all the answers i solved the problem by replacing gina.dll with my own. I used the ginastub example, and it works very well. :)

-GES
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top