I wrote a windows service in C# .NET 3.5.
It starts up automatically and runs as Local System User (no log in required).
If i run a Shutdown-Batch-File (shutdown -s -t 30) with my service by calling Process.Start(), nothing happens until i log in to windows. So it waits for logging in and then starts the batch.
Is it possible to run this batch in logged off state?
Greetings
There is a property for each service application called
Allow Interact With Desktopthat should be setTruefor your service to be able to runShutdown-Batch-File.Take a look at these links:
Interact With Desktop when Installing Windows Service
Allow service to interact with desktop in C#