You are a Windows system administrator tasked with ensuring that a specific server reboots every Sunday at 2 AM to apply updates. Which script, among the following, best accomplishes this task?
The Task Scheduler is a built-in Windows utility that allows users to schedule scripts and programs to run at specific times. A PowerShell script can be used to create a scheduled task for automatic rebooting. The script should include the 'Register-ScheduledTask' cmdlet to specify the task details, including the action (reboot) and the trigger (time). The other options either do not apply to Windows environments or lack the necessary syntax to schedule a reboot.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is the Purpose of the Task Scheduler?
Open an interactive chat with Bash
What are the components of the Scheduled Task script?
Open an interactive chat with Bash
What is PowerShell and why is it used in this script?