Prepare for the CompTIA PenTest+ Exam with flashcards and multiple choice questions. Each question offers hints and detailed explanations, empowering you for success!

Each practice test/flash card set has 50 randomly selected questions from a bank of over 500. You'll get a new set of questions each time!

Practice this question and more.


What command is used to create a scheduled task in Windows?

  1. schtasks

  2. tasklist

  3. crontab

  4. start

The correct answer is: schtasks

The command used to create a scheduled task in Windows is "schtasks". This command is part of the Windows operating system and allows users to schedule and manage tasks that run at specified times or intervals. With "schtasks", users can create, delete, configure, or display scheduled tasks. The versatility of "schtasks" allows for various options, such as setting the task to run on a particular day or time, running the task under specific user accounts, and even specifying the action the task should perform when triggered. It is an essential tool for system administrators and IT professionals who need to automate processes within the Windows environment. In contrast, the command "tasklist" is used to display a list of currently running processes, while "crontab" is specific to Unix-based systems for similar scheduling tasks. The "start" command is utilized to start a separate window to run a specified program or command, but it does not relate to scheduling tasks. Therefore, "schtasks" is clearly the correct choice for creating scheduled tasks in Windows.