Reputation: 17
I want to create a simple checker console application that should run at startup on developer's machines and check some items. This is to make sure that all developers are working according to a predefined policy that gets updated on regular basis.
Everything works just fine, except that this console application runs before Windows is truly booted (user is not logged in yet), and our application encounters access denied exceptions in some places.
In this answer, it's suggested that we either change the console to Windows service, or make it a Windows scheduled task, none of which is desirable in our situation.
Is there any way to check that Windows is fully booted, and user is logged in (for example in a while loop) and after that continue the code in .NET?
Upvotes: 0
Views: 106
Reputation: 2879
open
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run]
For each program you want to start automatically create a new string value using a descriptive name, and set the value of the string to the program executable
Upvotes: 1