Batch File to Login to Windows

August 23, 2011 at 08:55:12
Specs: Windows 2003 Server
I am trying to write a batch file that will login to windows. What I want to do is create a scheduled task to run a batch file that will login to windows with a certain user ID. I have a program that HAS to be logged in to run a certain process that runs at a set time. I can't leave the server logged in everyday and I can't lock the screen with the user logged in either. The only thing I can think of is to create a scheduled task that will login and then after the process runs, the machine can lock. If anyone has any other ideas, I would like to hear them or if you could help me with the script to run as a scheduled task, I would be appreciative.


-Jason


See More: Batch File to Login to Windows

Report •


#1
August 23, 2011 at 09:03:57
Have you tried setting up a scheduled task to run your program as the specified user?

How To Ask Questions The Smart Way


Report •

#2
August 23, 2011 at 09:42:47
Yes, I have. What is crazy is that you have to actually be logged in to the computer and the screen has to be up and unlocked. It is really goofy.

Report •

#3
August 23, 2011 at 17:24:35
I don't think it is possible to login locally with a script. For security reasons Windows has some very strict requirements as to how such a login can take place. You must either use the supplied interface or a custom interface, such as for a smart card and PIN number. The creation of such an interface is by no means a simple thing.

Report •

Related Solutions


Ask Question