powershellscripts.com

Tutorials  PowerShell Cmdlet Help for Checkpoint-Computer



NAME
Checkpoint-Computer

SYNOPSIS
Creates a system restore point on the local computer.

SYNTAX
Checkpoint-Computer [-Description] [[-RestorePointType] ] []


DESCRIPTION
The Checkpoint-Computer cmdlet creates a system restore point on the local computer. This cmdlet runs only on Windo
ws Vista and Windows XP.


PARAMETERS
-Description
Specifies a descriptive name for the restore point. This parameter is required.

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

-RestorePointType
Specifies the type of restore point. The default is APPLICATION_INSTALL.

Valid values are APPLICATION_INSTALL, APPLICATION_UNINSTALL, DEVICE_DRIVER_INSTALL, MODIFY_SETTINGS, and CANCEL
LED_OPERATION.

Required? false
Position? 2
Default value APPLICATION_INSTALL
Accept pipeline input? false
Accept wildcard characters? false


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 Checkpoint-Computer.


OUTPUTS
None
This cmdlet does not generate any output.


NOTES


This cmdlet uses the CreateRestorePoint method of the SystemRestore class with a BEGIN_SYSTEM_CHANGE event.


-------------------------- EXAMPLE 1 --------------------------

C:\PS>checkpoint-computer -description "Install MyApp"


Description
-----------
This command creates a system restore point called "Install MyApp". It uses the default APPLICATION_INSTALL restore
point type.





-------------------------- EXAMPLE 2 --------------------------

C:\PS>checkpoint-computer -description "ChangeNetSettings" -RestorePointType MODIFY_SETTINGS


Description
-----------
This command creates a MODIFY_SETTINGS system restore point called "ChangeNetSettings".






RELATED LINKS
Online version: http://go.microsoft.com/fwlink/?LinkID=135197
Add-Computer
Remove-Computer
Restart-Computer
Restore-Computer
Stop-Computer
Test-Connection