-
Notifications
You must be signed in to change notification settings - Fork 82
SystemRestorePoint
dscbot edited this page Oct 30, 2024
·
1 revision
Parameter | Attribute | DataType | Description | Allowed Values |
---|---|---|---|---|
Ensure | Required | String | Indicates that the computer restore is enabled or is disabled. |
Present , Absent
|
Description | Key | String | Specifies a descriptive name for the restore point. | |
RestorePointType | Write | String | Specifies the restore point type. Defaults to APPLICATION_INSTALL. |
APPLICATION_INSTALL , APPLICATION_UNINSTALL , DEVICE_DRIVER_INSTALL , MODIFY_SETTINGS , CANCELLED_OPERATION
|
This resource is used to create and delete restore points. System Protection must be enabled on at least one drive for this module to work.
System restore points are only applicable to workstation operating systems. Server operating systems are not supported.
Creates a system restore point.
Configuration SystemRestorePoint_CreateModifySettings_Config
{
Import-DSCResource -ModuleName ComputerManagementDsc
Node localhost
{
SystemRestorePoint ModifySettings
{
Ensure = 'Present'
Description = 'Modify system settings'
RestorePointType = 'MODIFY_SETTINGS'
}
}
}
Deletes all restore points matching the description and the APPLICATION_INSTALL restore point type.
Configuration SystemRestorePoint_DeleteApplicationInstalls_Config
{
Import-DSCResource -ModuleName ComputerManagementDsc
Node localhost
{
SystemRestorePoint DeleteTestApplicationinstalls
{
Ensure = 'Absent'
Description = 'Test Restore Point'
RestorePointType = 'APPLICATION_INSTALL'
}
}
}
- Computer
- IEEnhancedSecurityConfiguration
- OfflineDomainJoin
- PendingReboot
- PowerPlan
- PowerShellExecutionPolicy
- PSResourceRepository
- RemoteDesktopAdmin
- ScheduledTask
- SmbServerConfiguration
- SmbShare
- SystemLocale
- SystemProtection
- SystemRestorePoint
- TimeZone
- UserAccountControl
- VirtualMemory
- WindowsCapability
- WindowsEventLog