Sign in to follow this  
Followers 0
F8LDXSL4P

Task Scheduler running hidden tasks

6 posts in this topic

I have task scheduler scheduled to run a script that contains "SplashImage" but it is keeping the program hidden and image never appears when launched.. Task is setup to "Run only when user is logged in"

Any help would be appreciated! Thanks

Share this post


Link to post
Share on other sites



What account/group are you running it under?


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites

Its a user with administrator rights

Share this post


Link to post
Share on other sites

And when creating the task did you set it to interactive so it has access to the desktop of the logged in user?


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

I just added the /IT to my task scheduler command but the image is still hidden.

Here is my command to schedule:

$AddTN = "schtasks /Create /TN IDS /SC Once /ST 03:45 /SD " & $sDay & " /TR C:\KAST\IDS\data\IDScal.exe /IT"

RunWait(@ComSpec & " /c " & $AddTN, @WindowsDir, @SW_HIDE)
Edited by F8LDXSL4P

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

   /IT                Enables the task to run interactively only if the /RU
                      user is currently logged
on at the time the job runs.
                      This task runs only if the user is logged in.

You can initiate psexec|paexec, with -s -i params.

Otherwise, debug your schtask /create via command line, before moving it into your script (it will show your failures, and why it failed, to create)

Edited by jdelaney

IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window.

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