Enable-ComputerRestore - PowerShell


 

Enables the System Restore feature on the specified file system drive. (Enable-ComputerRestore)

   

# NAME
Enable-ComputerRestore

# SYNOPSIS
Enables the System Restore feature on the specified file system drive.

# SYNTAX
Enable-ComputerRestore [-Drive] <string[]> [-Confirm] [-WhatIf] [<CommonParameters>]

# DESCRIPTION
The Enable-ComputerRestore cmdlet turns on the System Restore feature on one or more file system drives. As a result, you can use tools, such as the Restore-Computer cmdlet, to restore the computer to a previous state.

By default, System Restore is enabled on all eligible drives, but you can disable it, such as by using the Disable-ComputerRestore cmdlet. To enable (or re-enable) System Restore on any drive, it must be enabled on the system drive, either first or concurrently. To find the state of System Restore for each drive, use Rstrui.exe.

# PARAMETERS
-Drive <string[]>
Specifies 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 enable System Restore on a remote network drive, even if the drive is mapped to the local computer, and you cannot enable System Restore on drives that are not eligible for System Restore, such as external drives.

To enable System Restore on any drive, System Restore must be enabled on the system drive, either before or concurrently.

Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false

-Confirm [<SwitchParameter>]
Prompts you for confirmation before executing the command.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-WhatIf [<SwitchParameter>]
Describes what would happen if you executed the command without actually executing the command.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer and OutVariable. For more information, type,
"get-help about_commonparameters".

# INPUTS
None
You cannot pipe objects to this cmdlet.

# OUTPUTS
None
This cmdlet does not generate any output.

# NOTES

Disable-ComputerRestore and Enable-ComputerRestore work only on client operating systems, such as Windows Vista and Windows XP.

To run an Enable-ComputerRestore command on Windows Vista and later versions of Windows, open Windows PowerShell with the "Run as administrator" option.

To find the file system drives that are eligible for system restore, in System in Control Panel, see the System Protection tab. To open this tab in Windows PowerShell, type "SystemPropertiesProtection".

This cmdlet uses the Windows Management Instrumentation (WMI) SystemRestore class.

# EXAMPLE 1

C:\PS>enable-computerrestore -drive "C:\"

# Description
-----------
This command enables System Restore on the C: drive of the local computer.

# EXAMPLE 2

C:\PS>enable-computerrestore -drive "C:\", "D:\"

# Description
-----------
This command enables System Restore on the C: and D: drives of the local computer.

RELATED LINKS
Online version: http://go.microsoft.com/fwlink/?LinkID=135209
Disable-ComputerRestore
Get-ComputerRestorePoint
Restore-Computer
Restart-Computer

C:\Windows>powershell get-help Disable-ComputerRestore -full

ColorConsole [Version 1.7.1000] PowerShell 2.0-Export
Microsoft Windows [Version 6.1.7600]
Copyright (c) 2014 Microsoft Corporation.

OS: Windows 10, 8.1, 8, 7, Vista / Windows Server 2016, 2012, 2008
»»»» ColorConsole








Windows-10





Windows-10

... facebook.de
... Windows-10 FAQ
... Windows-10 Info


Become a Sponsor
... Your button here?





PowerShell: Enables the System Restore feature on the specified file system drive.

HTTP: ... PS_Windows/en/Enable-ComputerRestore.htm
0.187
15607

Can I Create a Diagonal Text in Word (rotated)!

 /

Wozu Immer Maus Rad unter Windows (10, 8.1, 7) ?

 /

How can i view *.ttc fonts in not Windows Font directory?

 /

What internet browsers will work on Windows 7?

 /

Wie kann ich den FTP-Clientmodus im FileZilla von Passiv- auf Aktiven-Modus umstellen?

 /

Scroll via mouse wheel even if the window is not in the foreground ergo focused!

 /

Are the full versions of Software freeware on SoftwareOK?

 /

WinScan2PDF und Twain!

 /

Ein sehr komfortables Dateimanagement-Programm für Windows!

 /

What is TWAIN?

 /

How can I switch or customize the Language In DesktopOK?

 /

So many folders in the directory tree in Windows 10 Explorer, why?

 /