I have a server which I connect to with remote desktop connection. I have defined auto login for a particular user. I also have scheduled a batch script to run after logon for that user.
However, when I restart the server and later try to logon with remote desktop for the same user, it seems like it does the actual login when I connect. What I want is to make sure that this user is already logged in. In this way I can ensure that my script is run if a restart or failure has occured. Right now I actually have to connect with RDP to fire this script.
I have defined the variables in winlogin after running regedit.exe (DefaultUsername, DefaultPassword, etc.), and also used the autologon.exe found here http://live.sysinternals.com/. It seems like username, password and domains are correct.
How can I make sure that the user is already logged if a restart has occured? I am probably missing something, but I don't want to connect with RDP in order to start the script.