I
I
Ivan2019-02-15 17:43:36
Windows
Ivan, 2019-02-15 17:43:36

How to run a program on a Windows user login window?

How to run a program on a Windows user login window?
There is a way when sethc.exe is renamed to cmd.exe, so you can open any program on the login window. ( https://en.wikihow.com/activate-command-line...
But this is a hole, it is closed on the latest versions or will be closed somewhere.
It is possible to make a service out of the program, it really loads, but the GUI is not displayed on the login window and, accordingly, the program cannot be interacted with.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
VoidVolker, 2019-02-15
@iZnatOk

Oh, here there are nuances, in fact, and you need to write decent code. Like this: https://github.com/VoidVolker/Windows-logon-service - wrote a couple of years ago. For two weeks I was digging somewhere in Google how to file it all down.
The main difficulty here is in the security system, which starts services, login and user in different profiles. Therefore, simply launching an application from the service will only lead to the launch of this application in the same profile, while neither the user nor the logon of this application will see it. Therefore, you need to run the application in a tricky way on behalf of another profile. And, another problem in network access is that system services do not have access to the network (network services are launched after loading the user profile), but in this case the application being launched has access to the network. All other details are in the code.

J
John_Nash, 2019-02-15
@John_Nash

I suppose you need to dig from here : Smss and Winlogon

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question