Turn on System Restore on a specified file system drive.
Syntax Enable-ComputerRestore [-Drive] string [-Confirm] [-WhatIf] [CommonParameters] Key -drive string The file system drive, one or more drive letters, each followed by :\ and enclosed in quotation marks, such as "C:\" or "D:\" -confirm Prompt for confirmation before executing the command. -whatIf Describe what would happen if you executed the command without actually executing the command. CommonParameters: -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
Related PowerShell Commands:
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