Contact Info

Crumbtrail

ActiveXperts.com » Administration » Powershell » Powershell 2.0 » Disable-ComputerRestore

Disable-ComputerRestore - Powershell 2.0 CmdLet

Microsoft Windows PowerShell is a command-line shell and scripting tool based on the Microsoft .NET Framework. It is designed for system administrators, engineers and developers to control and automate the administration of Windows and applications.

More than hundred command-line tools (so called "cmdlets") can be used to perform system administration tasks and Windows Management Instrumentation (WMI). These cmdlets are easy to use, with standard naming conventions and common parameters, and standard tools for piping, sorting, filtering, and formatting data and objects.

Disable-ComputerRestore


Short description
Disables the System Restore feature on the specified file system drive.

Syntax
Disable-ComputerRestore [-Drive] <string[]> [-Confirm] [-WhatIf] [<CommonParameters>]

Description
The Disable-ComputerRestore cmdlet turns off the System Restore feature on one or more file system drives. As a res
    ult, 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 dr
    ive, use Rstrui.exe.