tatyavinchu Posted September 8, 2011 Share Posted September 8, 2011 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 ? Link to comment Share on other sites More sharing options...
spudw2k Posted September 8, 2011 Share Posted September 8, 2011 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. Spoiler Things I've Made: Always On Top Tool ◊ AU History ◊ Deck of Cards ◊ HideIt ◊ ICU ◊ Icon Freezer ◊ Ipod Ejector ◊ Junos Configuration Explorer ◊ Link Downloader ◊ MD5 Folder Enumerator ◊ PassGen ◊ Ping Tool ◊ Quick NIC ◊ Read OCR ◊ RemoteIT ◊ SchTasksGui ◊ SpyCam ◊ System Scan Report Tool ◊ System UpTime ◊ Transparency Machine ◊ VMWare ESX BuilderMisc Code Snippets: ADODB Example ◊ CheckHover ◊ Detect SafeMode ◊ DynEnumArray ◊ GetNetStatData ◊ HashArray ◊ IsBetweenDates ◊ Local Admins ◊ Make Choice ◊ Recursive File List ◊ Remove Sizebox Style ◊ Retrieve PNPDeviceID ◊ Retreive SysListView32 Contents ◊ Set IE Homepage ◊ Tickle Expired Password ◊ Transpose ArrayProjects: Drive Space Usage GUI ◊ LEDkIT ◊ Plasma_kIt ◊ Scan Engine Builder ◊ SpeeDBurner ◊ SubnetCalcCool Stuff: AutoItObject UDF ◊ Extract Icon From Proc ◊ GuiCtrlFontRotate ◊ Hex Edit Funcs ◊ Run binary ◊ Service_UDF Link to comment Share on other sites More sharing options...
tatyavinchu Posted September 9, 2011 Author Share Posted September 9, 2011 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. Link to comment Share on other sites More sharing options...
hannes08 Posted September 9, 2011 Share Posted September 9, 2011 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] Link to comment Share on other sites More sharing options...
spudw2k Posted September 15, 2011 Share Posted September 15, 2011 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. Spoiler Things I've Made: Always On Top Tool ◊ AU History ◊ Deck of Cards ◊ HideIt ◊ ICU ◊ Icon Freezer ◊ Ipod Ejector ◊ Junos Configuration Explorer ◊ Link Downloader ◊ MD5 Folder Enumerator ◊ PassGen ◊ Ping Tool ◊ Quick NIC ◊ Read OCR ◊ RemoteIT ◊ SchTasksGui ◊ SpyCam ◊ System Scan Report Tool ◊ System UpTime ◊ Transparency Machine ◊ VMWare ESX BuilderMisc Code Snippets: ADODB Example ◊ CheckHover ◊ Detect SafeMode ◊ DynEnumArray ◊ GetNetStatData ◊ HashArray ◊ IsBetweenDates ◊ Local Admins ◊ Make Choice ◊ Recursive File List ◊ Remove Sizebox Style ◊ Retrieve PNPDeviceID ◊ Retreive SysListView32 Contents ◊ Set IE Homepage ◊ Tickle Expired Password ◊ Transpose ArrayProjects: Drive Space Usage GUI ◊ LEDkIT ◊ Plasma_kIt ◊ Scan Engine Builder ◊ SpeeDBurner ◊ SubnetCalcCool Stuff: AutoItObject UDF ◊ Extract Icon From Proc ◊ GuiCtrlFontRotate ◊ Hex Edit Funcs ◊ Run binary ◊ Service_UDF Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now