Free CompTIA A+ 220-1102 Practice Question

You are a 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?

  • cron '0 2 * * 0 shutdown -r'

  • schtasks /create /tn 'WeeklyReboot' /tr 'shutdown.exe /r /t 0' /sc weekly /d SUN /st 02:00

  • echo 'shutdown -r now' | at -t 0200 Sunday

  • Register-ScheduledTask -Action (New-ScheduledTaskAction -Execute 'shutdown.exe' -Argument '/r /t 0') -Trigger (New-ScheduledTaskTrigger -Weekly -DaysOfWeek Sunday -At 2AM) -TaskName 'WeeklyReboot'

This question's topic:
CompTIA A+ 220-1102 / 
Operational Procedures
Your Score:

Check or uncheck an objective to set which questions you will receive.

Bash, the Crucial Exams Chat Bot
AI Bot