AWS WorkSpaces - Automated Graceful Reboot Setup

AWS WorkSpaces - Automated Graceful Reboot Setup

Purpose:
This article provides a step by step guide on how to configure automated, graceful reboots of Amazon WorkSpaces using AWS Systems Manager (SSM). A graceful reboot behaves the same as clicking Restart inside Windows and does not force shutdown of applications.

—————

Prerequisites

Before beginning, confirm the following:

WorkSpaces must be Windows-based

SSM Agent must be installed (included with standard WorkSpaces images)

WorkSpaces must be visible under Systems Manager Node Management Managed nodes

WorkSpaces require access to SSM service endpoints

—————

STEP 1 - Tag Each WorkSpace

Tagging groups WorkSpaces so automated reboot targets only those tagged.

1. Go to AWS Console WorkSpaces WorkSpaces

2. Select the desired WorkSpace

3. Add a tag:

Key: Maintenance
Value: WeeklyReboot

Repeat for each WorkSpace you want rebooted automatically.

—————

STEP 2 - Verify Managed Node Status

1. Go to AWS Console Systems Manager

2. Navigate to Node Management Managed nodes

3. Confirm each WorkSpace shows as a managed node

—————

STEP 3 - Create a Maintenance Window

1. Go to Systems Manager Maintenance Windows

2. Select Create maintenance window

Enter: - Name: weekly-workspaces-reboot - Schedule (example: Sundays at 2 AM CST):

cron(0 2 ? * SUN *)

Time zone: America/Chicago

Duration: 2

Stop initiating tasks: 1

Save

Enable the maintenance window.

—————

STEP 4 - Register WorkSpace Targets

1. Inside the maintenance window, select Actions Register targets

2. Target type: Managed nodes

3. Choose Specify tags

4. Enter tag values used earlier:

Key: Maintenance
Value: WeeklyReboot

5. Name the target: workspace-reboot-target

6. Save

—————

STEP 5 - Add Reboot Task (Graceful)

1. Inside the maintenance window, select Actions Register task

2. Choose task type: Run Command

3. For the document, choose: AWS-RunPowerShellScript

4. Under Command Parameters, enter:

Restart-Computer

The command intentionally excludes -Force. This allows a graceful reboot so Windows can close apps properly.

5. Under Targets, select the target created earlier

6. Rate controls:

Concurrency: 10 percent

Error threshold: 10 percent

7. Select or create the required IAM role when prompted

8. Save

—————

STEP 6 - Testing the Reboot

1. In the Maintenance Window page, choose Actions Run now

2. Verify the WorkSpace reboots normally

3. Confirm the reboot action appears under Systems Manager Run Command Command history

—————

Troubleshooting

Symptom


Resolution


WorkSpace does not show in Managed nodes


Verify network access to SSM, SSM Messages, EC2 Messages


Reboot does not trigger


Confirm tags match exactly (case sensitive)


User sessions are disrupted


Adjust schedule cron time to off hours



—————

Quick Summary

1. Tag WorkSpaces for automation

2. Create Maintenance Window

3. Register targets using tags

4. Register Run Command task using Restart-Computer

This provides a safe and automated reboot strategy without forcing shutdowns.

    • Related Articles

    • How to Access and Manage Remote Desktops in AWS

      Overview Amazon Web Services (AWS) provides multiple ways to deploy and access remote desktops depending on your environment setup. The three most common methods are Amazon WorkSpaces, EC2 Windows Instances, and Amazon AppStream 2.0. Each option has ...
    • AWS WorkSpaces – Troubleshooting When a WorkSpace Is Not Responding

      Purpose: This guide outlines the recommended steps to resolve when an AWS WorkSpace becomes unresponsive for a user. ————— Step 1: Check WorkSpaces Status in AWS Console 1. Log in to AWS Console. 2. Navigate to WorkSpaces → WorkSpaces. 3. Locate the ...
    • Popular Articles

    • How to install Office Apps (365) to your Windows or Mac computer

      How to Download and Install Microsoft 365 Office Apps (Windows and Mac) This guide will walk you through downloading and installing the Microsoft 365 Office apps, including Word, Excel, PowerPoint, Outlook, and more. The steps are nearly the same for ...
    • How to Save and Share a Document in OneDrive from Word or Excel

      Follow these steps to save your document to OneDrive and share it with others directly from Word or Excel. ————— Step 1: Save to OneDrive 1. In Word or Excel, click File. 2. Select Save As. 3. Choose OneDrive – [Your Organization or Personal]. 4. ...
    • How to Collaborate on a Document in Real-Time with Others

      Microsoft 365 allows you to co-author documents with colleagues in Word, Excel, or PowerPoint. ————— Step 1: Save to OneDrive or SharePoint 1. Open your file in Word, Excel, or PowerPoint. 2. Click File > Save As and select OneDrive or SharePoint. ...
    • How to Recover Unsaved or Previous Versions of Office Files

      If you lose changes or accidentally close a document, you can often recover it using Office’s built-in recovery tools. ————— Step 1: Recover Unsaved Files 1. Open Word, Excel, or PowerPoint. 2. Go to File > Info > Manage Document (or Manage ...
    • How to Use Templates in Word, Excel, and PowerPoint

      Microsoft Office apps come with ready-to-use templates to save you time. ————— Step 1: Access Templates 1. Open Word, Excel, or PowerPoint. 2. From the start screen, you’ll see featured templates. 3. Or click File > New to browse available templates. ...