Skip to content

Commit 7b0317d

Browse files
authored
SystemProtection/SystemRestorePoint: New DSC Resources (#373)
1 parent 0da217a commit 7b0317d

21 files changed

+2076
-3
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
### Added
99

10+
- SystemProtection
11+
- New resource to configure System Protection settings (formerly xWindowsRestore) - Fixes [Issue #364](https://github.com/dsccommunity/ComputerManagementDsc/issues/364).
12+
- SystemRestorePoint
13+
- New resource to create and delete restore points (formerly xSystemRestorePoint) - Fixes [Issue #364](https://github.com/dsccommunity/ComputerManagementDsc/issues/364).
1014
- ScheduledTask
1115
- Added support for ScheduleType 'OnIdle', 'AtCreation', 'OnSessionState'.
1216
Fixes [Issue #282](https://github.com/dsccommunity/ComputerManagementDsc/issues/282).

README.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,11 @@ The **ComputerManagementDsc** module contains the following resources:
5858
settings on the local machine.
5959
- **SmbShare**: This resource is used to manage SMB shares on a machine.
6060
- **SystemLocale**: This resource is used to set the system locale on a
61-
Windows machine.
61+
Windows machine
62+
- **SystemProtection**: This resource is used to configure System Protection settings
63+
on a workstation (servers are not supported).
64+
- **SystemRestorePoint**: This resource is used to create and delete restore points
65+
when System Protection is enabled (servers are not supported).
6266
- **TimeZone**: This resource is used for setting the time zone on a machine.
6367
- **UserAccountControl**: This resource allows you to configure the notification
6468
level or granularly configure the User Account Control for the computer.

source/ComputerManagementDsc.psd1

+20-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,26 @@
3939
AliasesToExport = @()
4040

4141
# DSC resources to export from this module
42-
DscResourcesToExport = @()
42+
DscResourcesToExport = @(
43+
'Computer'
44+
'OfflineDomainJoin'
45+
'PendingReboot'
46+
'PowerPlan'
47+
'PowerShellExecutionPolicy'
48+
'RemoteDesktopAdmin'
49+
'ScheduledTask'
50+
'SmbServerConfiguration'
51+
'SmbShare'
52+
'SystemLocale'
53+
'SystemProtection'
54+
'SystemRestorePoint'
55+
'TimeZone'
56+
'VirtualMemory'
57+
'WindowsEventLog'
58+
'WindowsCapability'
59+
'IEEnhancedSecurityConfiguration'
60+
'UserAccountControl'
61+
)
4362

4463
# Private data to pass to the module specified in RootModule/ModuleToProcess. This may also contain a PSData hashtable with additional module metadata used by PowerShell.
4564
PrivateData = @{

0 commit comments

Comments
 (0)