jsanthara :
I recently received an answer to a question I posted on this forum which advised me to create a basic task in the Task Scheduler. One of the steps was to put -t as the value in the argument field under the action tab. I was just wondering what this "-t" is, and what were some of the other "arguments". I looked on a few search engines and couldn't find out much more. Does anyone know where I can find a list of these arguments and what they do?
Perhaps this post is too old and my reply is too late as you might have found the answer.
However I'd like to make my point on your question.
I've had the same question as you. And the answer is pretty simple: THERE ARE NOT predefined list about the arguments you can use with Task Scheduler, as it will use the same arguments you use for your script/program.
Example: if you want to ping several machines/servers (say 40 as an example) you would use this syntax in a command prompt: ping
server-name -n 1
-n 1 will limit the amount of pings your computer will send to the target computer to 1, as the default is 4 pings.
Now. If you want that to be documented in a text file, you'll use: ping
server-name -n 1 > C:\pingreply.txt
This will certainly works for 1 machine ONLY. Now how about the others 39 servers? Just write a batch file (.cmd or .bat) and name it with something like PingScript.bat as follows:
ping server1 -n 1
ping server2 -n 1
ping server3 -n 1
...
...
From a command-prompt you'll call this batch file like this: pingsrcipt.bat > C:\pingresults.txt
Now... ">" is an ARGUMENT that states to print out the output to C: and will name it as PINRESULTS.TXT
So.. having said that, the same argument is used within Task Scheduler, and no matter what user are you using for define the task, and also you can set the task for whether the user is logged or not (it's really up to you and what your needs are).
NOTE: when passing the argument into the task scheduler, you have to use the entire argument (not only the symbol). That means you need to use this syntax as an argument:
> C:\pingresults.txt and you're done!
😀