Sign in to follow this  
Followers 0
tatyavinchu

Windows Login

5 posts in this topic

I am new to AutoIT but it seems pretty easy to understand. I have one question though, for my script to run, a user has to be logged on to the machine (if he is not already). Is there a way to execute the script in such a way that the very first task is to logon a user in Windows 7 ? Then do my tasks and then log the user off ?

Share this post


Link to post
Share on other sites



If you do a google search for Auto Login you will find registry keys to automate that. Just keep in mind that the username and password are stored in CLEARTEXT and should be cleaned up after reboot.

Sysinternals has a tool that can do it securely (encrypted password) http://technet.microsoft.com/en-us/sysinternals/bb963905

I'd recommend that unless you can't have that exe as a dependency.

Share this post


Link to post
Share on other sites

Thanks for the post. But here is my problem. I dont want the user to autologon on boot. Lets say I run this script at 12am. The first thing I want to happen is the user logs on, the script runs, it does some tasks and logs off. If I keep the user logged on, there are people who start using this machine. So at all times, this machine has to be logged off/locked only until its time to execute the AutoIT script and then do the necessary steps. Does that make sense? Thanks in advance.

Share this post


Link to post
Share on other sites

You could use a scheduled task, to reboot the PC at 12am if no one is logged in.

Then use the tool that spudw2k suggested to do an autologin.

Do what you need to do and logg the user off again.


Regards,Hannes[spoiler]If you can't convince them, confuse them![/spoiler]

Share this post


Link to post
Share on other sites

I agree with hannes; Have a scheduled task run to do run the autologin tool, reboot so it does autologin, cleanup autologin tool, run tasks, reboot.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0