Run anything as service – Start a program before logon
I recently came to problem, where I needed to run a program before I do login. One solution was setting up a startscript using gpedit.msc, but this needed me to disable an option which makes Windows login much faster. So I came to another solution: Run the program as service!
This is surprisingly easy: Microsoft has added a programm, called sc.exe which does this job for you. Here is an example
sc.exe create "TrueCrypt Automount" start= "auto" binPath= "C:\automount.bat" DisplayName= "TrueCrypt Automount"