Jump to content
Sign in to follow this  
F8LDXSL4P

Task Scheduler running hidden tasks

Recommended Posts

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

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

   /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  

×
×
  • Create New...