This is the built-in help made by Microsoft for the command 'Disable-ComputerRestore', in PowerShell version 2 - as retrieved from
Windows version 'Microsoft® Windows Vista™ Ultimate ' PowerShell help files on 2016-06-23.
For PowerShell version 3 and up, where you have Update-Help, this command was run just before creating the web pages from the help files.
Disables the System Restore feature on the specified file system drive.
Disable-ComputerRestore [-Drive] <string[]> [-Confirm] [-WhatIf] [<CommonParameters>]
The Disable-ComputerRestore cmdlet turns off the System Restore feature on one or more file system drives. As a result, attempts to restore the c
omputer 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.
<
Online version: http://go.microsoft.com/fwlink/?LinkID=135207
Enable-ComputerRestore
Get-ComputerRestorePoint
Restore-Computer
Restart-Computer
<
-------------------------- EXAMPLE 1 --------------------------
C:\PS>disable-computerrestore -drive "C:\"
Description
-----------
This command disables System Restore on the C: drive.
-------------------------- EXAMPLE 2 --------------------------
C:\PS>disable-computerrestore "C:\", "D:\"
Description
-----------
This command disables System Restore on the C: and D: drives. The command uses the Drive parameter, but it the omits the optional parameter name.