Prepare for the CompTIA PenTest+ Exam. Enhance your skills with practice questions and detailed explanations. Ace your test and advance your cybersecurity career!

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 is the main function of '/mo' in the schtasks command?

  1. To specify the task duration

  2. To indicate the frequency of the task

  3. To set the run conditions

  4. To create a new task

The correct answer is: To indicate the frequency of the task

The '/mo' parameter in the schtasks command is used to indicate the frequency of the task by specifying the modifier for how often the task should run. For instance, if the task is set to run daily and you use '/mo 2', it means the task will execute every 2 days. This allows for flexibility in scheduling, as you can define not just that a task occurs (daily, weekly, etc.) but also how frequently within that timeframe. The other options do not align with the function of '/mo': specifying the task duration or creating a new task does not relate to the modifiers used in scheduling, and setting run conditions pertains more to system settings or triggers rather than the frequency of execution. Hence, the '/mo' parameter's primary role is centered on defining how often the task occurs based on the type of scheduling defined in conjunction with other parameters.