2026-01-07 19:55:35 +00:00
|
|
|
# Create Restore Point
|
|
|
|
|
|
|
|
|
|
```json
|
2026-01-14 20:28:45 +02:00
|
|
|
"WPFTweaksRestorePoint": {
|
|
|
|
|
"Content": "Create Restore Point",
|
|
|
|
|
"Description": "Creates a restore point at runtime in case a revert is needed from WinUtil modifications",
|
|
|
|
|
"category": "Essential Tweaks",
|
|
|
|
|
"panel": "1",
|
|
|
|
|
"Checked": "False",
|
|
|
|
|
"Order": "a001_",
|
|
|
|
|
"registry": [
|
|
|
|
|
{
|
|
|
|
|
"Path": "HKLM:\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\SystemRestore",
|
|
|
|
|
"Name": "SystemRestorePointCreationFrequency",
|
|
|
|
|
"Type": "DWord",
|
|
|
|
|
"Value": "0",
|
|
|
|
|
"OriginalValue": "1440"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"InvokeScript": [
|
2026-01-07 19:55:35 +00:00
|
|
|
"
|
2026-01-14 20:28:45 +02:00
|
|
|
if (-not (Get-ComputerRestorePoint)) {
|
|
|
|
|
Enable-ComputerRestore -Drive $Env:SystemDrive
|
|
|
|
|
}
|
2026-01-07 19:55:35 +00:00
|
|
|
|
2026-01-14 20:28:45 +02:00
|
|
|
Checkpoint-Computer -Description \"System Restore Point created by WinUtil\" -RestorePointType MODIFY_SETTINGS
|
|
|
|
|
Write-Host \"System Restore Point Created Successfully\" -ForegroundColor Green
|
|
|
|
|
"
|
|
|
|
|
],
|
2026-01-07 19:55:35 +00:00
|
|
|
```
|