wan Posted August 17, 2022 Share Posted August 17, 2022 I have a script that run hourly through Task Scheduler. The problem is when I want to run it even when user is not login and have tick/untick all required radio box eg, Run with high privilege but it shows the script running in Task Manager but no GUI (My script need to run interactively) . So, I discovered to run the script using Pstool. But the script stop running and stuck when the process is to export the excel file into local directory. This is my batch file : C:\PSTools\PsExec.exe psexec -i -s "C:\Program Files (x86)\AutoIt3\AutoIt3.exe" "E:\TMGAD0001\TMGAD0001 - Backup.au3" Link to comment Share on other sites More sharing options...
rsn Posted August 18, 2022 Share Posted August 18, 2022 Looks like an extra psexec in your command. Perhaps you want this instead? C:\PSTools\PsExec.exe -i -s "C:\Program Files (x86)\AutoIt3\AutoIt3.exe" "E:\TMGAD0001\TMGAD0001 - Backup.au3" Link to comment Share on other sites More sharing options...
Zedna Posted August 19, 2022 Share Posted August 19, 2022 Quote The problem is when I want to run it even when user is not login and have tick/untick all required radio box eg, Also look at this FAQ in Wiki: https://www.autoitscript.com/wiki/FAQ#Why_doesn.27t_my_script_work_on_a_locked_workstation.3F Resources UDF ResourcesEx UDF AutoIt Forum Search 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