Turn on System Restore on a specified file system drive.

      Enable-ComputerRestore [-Drive] string[]
         [-Confirm] [-WhatIf] [CommonParameters]

   -drive string
       The file system drive, one or more drive letters, each followed by :\ and
       enclosed in quotation marks, such as "C:\" or "D:\"

       Prompt for confirmation before executing the command.

       Describe what would happen if you executed the command without actually
       executing the command.

By default, System Restore is enabled on all eligible drives.


Enable System Restore on the C: drive:

PS C:> Enable-ComputerRestore -drive "C:\"

Enable System Restore on the C: and D: drives:

PS C:> Enable-ComputerRestore"C:\", "D:\"

“Everything else you grow out of, but you never recover from childhood” ~ Beryl Bainbridge

Related PowerShell Cmdlets

Checkpoint-Computer - Create a system restore point.
Disable-ComputerRestore - Disable System Restore on a drive.
Restore-Computer - Restore the computer to a previous state.
Rstrui.exe - Find the state of System Restore for a drive.

Copyright © 1999-2024 SS64.com
Some rights reserved