Click here to Skip to main content
15,888,521 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
Hello Guys,

Is this possible to run application or exe before WINDOWS operating system login screen after start.

I have developed a customized login screen using C#.net and want to replace/bypass standard OperatingSystem login screen by our screen.

Thanks in advance...!

What I have tried:

have tried a lot but not success. Also tried to capture the credentials after putting on WINDOWS Login screen but hard luck.
Posted
Updated 18-Nov-17 20:34pm

1 solution

No. "Normal" applications must be run under a user account, and one hasn't been established until the login is complete. You can run services before login, but they cannot have a user interface.

Why are you trying to do this?
 
Share this answer
 
Comments
Freelancers 20-Nov-17 11:38am    
Thanks for the reply, I have tried with the service as well but no luck. Service will call the exe of my application but it will popup the form after login ie on Desktop.

Any idea how to popup the form before login process.

Just customize the windows login screen as per our process.
OriginalGriff 20-Nov-17 11:47am    
You can't. Only services can run before login, and they cannot have any UI. This is by design, and probably to prevent viruses and trojans hijacking the computer and faking the login process.
Freelancers 1-Dec-17 8:32am    
Hi, Thanks for the information.

Is it possible to popup the form on Login click? I tried a lot and exe runs but form doesn't appear. Tried with .net form, c++ form and power shell script but no luck.

Tried with userinit.exe as well and got success but looking some other way...


Thanks,

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900