I'm working on a VB.Net application that runs before the logon. The application visualizes and configures the behaviour of a service. For certain reasons it should run before logon (as well as after).
At the moment the application runs as "Local System". The application should read the registry of remote PCs and also check the state of a service of remote PCs. Therefore administrator priviledges are needed.
I tried to restart the application with "CreateProcessWithLogonW" from "Advapi32" and the System.Diagnostics.Process class. But without success.
If logged in it works.
To start my application a batch file is registered in the GPO.
What is the best way to do this?
It should work on all OperatingSystems after XP and Server 2003