CmdID / PowerShell / Cmdlets / Disable
Disable-ComputerRestore
Disables the System Restore feature on the specified file system drive. PowerShell reference
From the PowerShell reference 3 parameters
What it does
Disables the System Restore feature on the specified file system drive. The Disable-ComputerRestore cmdlet turns off the System Restore feature on one or more file system drives. As a result, attempts to restore the computer do not affect the specified drive. To disable System Restore on any drive, it must be disabled on the system drive, either first or concurrently. To re-enable System Restore, use the Enable-ComputerRestore cmdlet. To find the state of System Restore for each drive, use Rstrui.exe. System restore points and the ComputerRestore cmdlets are supported only on client operating systems, such as Windows 7, Windows Vista, and Windows XP.
Disable-ComputerRestore [-Drive] <String[]> [-WhatIf] [-Confirm] [<CommonParameters>]
Disable System Restore on the specified drive
Disable-ComputerRestore -Drive "C:\"IdentifyDisable System Restore on multiple drives
Disable-ComputerRestore "C:\", "D:\"IdentifyIts page in the reference: Disable-ComputerRestore.
Parameters
-DriveSpecifies the file system drives. Enter one or more file system drive letters, each followed by a colon and a backslash and enclosed in quotation marks, such as C:\ or D:\. This parameter is required.
You cannot use this cmdlet to disable System Restore on a remote network drive, even if the drive is mapped to the local computer, and you cannot disable System Restore on drives that are not eligible for System Restore, such as external drives.
To disable System Restore on any drive, System Restore must be disabled on the system drive, either before or concurrently.-ConfirmPrompts you for confirmation before running the cmdlet.-WhatIfShows what would happen if the cmdlet runs. The cmdlet is not run.