page contents

TechDumpz

LIKE IT OR NOT

Scheduling a Reboot With Powershell

Scheduling a Reboot With Powershell

Purpose: The purpose of this standard operating procedure is to document the correct and approved method for scheduling a reboot with PowerShell on Windows 8/8.1/10 and Windows Sever 2012, 2012 r2.

  1. Navigate to Start Menu > Programs > Administrative Tools
  2. Next, Click on Task Scheduler
  3. In the Task Scheduler window, click Create Task
  4. In the create task window on the general tab, do the following
    1. Name: Reboot
    2. Location: Leave Blank
    3. Description (Optional): Enter text that describes the scheduled task
    4. Check Run Whether User is Logged in or Not
    5. Select the correct Operating System configuration
  5. Click the Triggers tab
  6. Now, click New
  7. Configure the new trigger:
    1. Under Settings, select the frequency with which the task will run
    2. Select the Start Time
    3. Select the Start Date
    4. Check Enable
    5. Click OK
  8. Click the Actions tab
  9. Click New
  10. Configure the new action:
    1. Set Action to Start a Program
    2. Under Program/Script type: Powershell
    3. Under Add Argument type: restart-computer -force
    4. Click OK
  11. Click Ok
  12. Click Ok
  13. You will be prompted to credentials to allow for execution without being logged in. Enter your password.
  14. Click OK