trio.so
How-Tos

Enable System Protection on Windows 10 With Command Prompt

Get past "You must enable system protection on this drive". Turn on System Protection and run System Restore from the command prompt on Windows 10.

Mountain landscape representing leadership perspective and vision
Written by
Atena Ladchartabi

Content writer, trio.so

Published on
Modified on

"You must enable system protection on this drive" means System Restore is off for that drive, so Windows cannot create or use a restore point. To fix it, open PowerShell as administrator and run Enable-ComputerRestore -Drive "C:\". Then create a restore point and set how much disk space System Restore may use. The steps are the same on Windows 11.

Fix "You must enable system protection on this drive"

The message appears when you open System Restore or try to create a restore point on a drive where protection is off. Turn it on:

  1. Right-click Start and choose Windows PowerShell (Admin) or Terminal (Admin).
  2. Run:
Enable-ComputerRestore -Drive "C:\"

The cmdlet prints nothing when it works. It runs in Windows PowerShell 5.1, which ships with Windows. Microsoft's reference says you cannot use it to enable System Restore on external drives or network drives, and the system drive must be on first or at the same time.

To check the result, type SystemPropertiesProtection and look at the Protection column for your drive. It should say On.

Turn on System Protection in System Properties

  1. Press Windows + R, type sysdm.cpl and press Enter.
  2. Open the System Protection tab.
  3. Select the C: drive and click Configure.
  4. Choose Turn on system protection, set the Max Usage slider and click OK.

Set the disk space System Restore can use

System Restore stores restore points in shadow storage. To see the current limit:

vssadmin list shadowstorage

To set the limit to 10 percent of the drive:

vssadmin resize shadowstorage /for=C: /on=C: /maxsize=10%

Create a restore point from the command line

Checkpoint-Computer -Description "Before driver update" -RestorePointType MODIFY_SETTINGS

Windows limits restore points created this way to one every 24 hours by default, and may skip a new one inside that window. To list the points you have:

Get-ComputerRestorePoint

Run System Restore from the command prompt

To open the System Restore wizard from a command prompt or PowerShell, run:

rstrui.exe

To restore without the wizard, find the sequence number with Get-ComputerRestorePoint and run Restore-Computer -RestorePoint 12 in Windows PowerShell 5.1. Use your own number. The PC restarts to apply it. If Windows will not start, open the command prompt from the recovery environment (Troubleshoot > Advanced options > Command Prompt) and run rstrui.exe /offline:C:\windows=active.

If the setting turns itself off or is grayed out

  • A Group Policy turns it off. Check Computer Configuration > Administrative Templates > System > System Restore for Turn off System Restore.
  • The Volume Shadow Copy service is disabled. Run sc query vss and set it to manual if it is disabled.
  • The drive is not eligible. External and network drives cannot use System Restore.

Turn it on across many PCs

For a fleet, put Enable-ComputerRestore -Drive "C:\" in a script and run it on every PC. trio.so can run a script on enrolled Windows PCs from the console. See remote terminal.

Managing this across many devices

trio.so can run a script on enrolled Windows PCs from the console. Put Enable-ComputerRestore -Drive "C:\" in a script, test it on one PC, then send it to the rest. See remote terminal.

The trio.so console running a script on a Windows PC, with the script text and the PC it will run on.
Run a script on an enrolled Windows PC from the trio.so console.

Related reading: back up files on Windows 10 with the command prompt, PowerShell execution policies and disable startup programs.

Ready-to-use Templates

Must-have Template Toolkit for IT Admins

Explore All
Template Toolkit

Turn on System Protection on every PC

trio.so runs a script on enrolled Windows PCs from the console.

Start free trial

Manage Every Device From One Console

trio.so brings device management, patching and security policies for Windows, macOS, Linux, iOS/iPadOS and Android into one console. Enroll a device and see it in the console within minutes.

14-day free trial. No credit card required.

trio.so brings device management, patching and security policies for Windows, macOS, Linux, iOS/iPadOS and Android into one console. Enroll a device and see it in the console within minutes.

Smiling womanAbstract geometric patternAbstract geometric patternSmiling womanSmiling woman

Frequently Asked Questions (FAQ)

Have questions? We've got answers. This section covers some of the most commonly asked questions related to this topic.

Run rstrui.exe. In Windows PowerShell 5.1 you can also use Restore-Computer -RestorePoint with a sequence number from Get-ComputerRestorePoint.

Open PowerShell as administrator and run Enable-ComputerRestore -Drive "C:\".

Press Windows + R, run sysdm.cpl, open System Protection, select the drive, click Configure and choose Turn on system protection.

Related

From the blog

The related industry news, interviews, technologies, and resources.