This commit is contained in:
MyDrift
2025-03-19 21:24:10 +01:00
committed by GitHub
6 changed files with 665 additions and 81 deletions

View File

@ -2382,13 +2382,7 @@
Set-ItemProperty -Path \"HKLM:\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\SystemRestore\" -Name \"SystemRestorePointCreationFrequency\" -Value \"0\" -Type DWord -Force -ErrorAction Stop | Out-Null
}
# Attempt to load the required module for Get-ComputerRestorePoint
try {
Import-Module Microsoft.PowerShell.Management -ErrorAction Stop
} catch {
Write-Host \"Failed to load the Microsoft.PowerShell.Management module: $_\"
return
}
Invoke-WinUtilInitializeModule -module \"Microsoft.PowerShell.Management\"
# Get all the restore points for the current day
try {