NelsonAz Posted June 30, 2015 Share Posted June 30, 2015 Hello,I'm currently working on an automation script which executes a set of installers and then performs a reboot.After rebooting the system, the script starts up (using a runOnce registry key).Question: Is there a way to pause the script until a user has logged into the system (rather than waiting an arbitrary amount of time)?The reason I ask is that certain AutoIt functions which I'm using after the reboot are failing, as no user is logged in.Thank you,Nelson Link to comment Share on other sites More sharing options...
goss34 Posted June 30, 2015 Share Posted June 30, 2015 Could you place the script here:%allusersprofile%/Start Menu\Programs\StartupThis should then run when any user logs on. Link to comment Share on other sites More sharing options...
ViciousXUSMC Posted June 30, 2015 Share Posted June 30, 2015 HKCU Runonce should not run until the user has logged in.I guess HKLM runs without a user?I normally put all my scripts in the All User Startup Folder and I know they do not run until they log in. If i need run once I just have my script check for a reg key. Link to comment Share on other sites More sharing options...
NelsonAz Posted June 30, 2015 Author Share Posted June 30, 2015 Thank you both for your assistance.Nelson 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