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.

       -Verbose, -Debug, -ErrorAction, -ErrorVariable, -WarningAction, -WarningVariable,
       -OutBuffer -OutVariable.

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


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 © SS64.com 1999-2017
Some rights reserved