Backup and Restore Create System Restore Point in Windows 11


  • Staff
System_Restore_banner.png

This tutorial will show you how to manually create a restore point in Windows 11.

Turning on system protection for a drive allows System Restore to include the drive when restore points are created so you can undo undesired system changes by reverting to a previous point in time.

System Restore monitors system changes and saves the system state as a restore point. If a system problem develops as a result of a system change, the user can return the system to a previous state using the data from a restore point.

Restore points are created to let users select a previous system state. Each restore point contains the required information to restore the system to the selected state. Restore points are created before key changes are made to the system.

System Restore automatically manages the disk space that is allocated for restore points. It purges the oldest restore points to make room for new ones. System Restore allocates space based on the size of the hard disk and the version of Windows that the computer runs, as shown in the following table. You can adjust the maximum disk space per drive used for system protection.

Use System Restore to make restore points when you install a new app, driver, or Windows update, and when you create a restore point manually. System Restore does not restore user data or documents, so it will not cause users to lose their files, e-mail, browsing history, or favorites. Restoring will remove apps, drivers, and updates installed after the restore point was made. System Restore is also made available to users in the Windows Recovery Environment or safe mode, making it easier for them to restore their computers to a state before problems occurred.


You must be signed in as an administrator to create a restore point.

If you have Windows booted in safe mode, then you will not be able to create a restore point.

Restore points are stored in the hidden protected OS System Volume Information folder in the root directory of each drive you have system protection turned on.

Restore points are saved until the disk space System Restore reserves is filled up. As new restore points are created afterwards, old ones are automatically deleted.

When a feature update is installed for Windows 11, all restore points will automatically get deleted in the process of the update since the old restore points will be incompatible with the new Windows Update.


Restore points are not meant to take the place of backups and system images. Instead, restore points are only an extra short term method of recovery to have handy as needed. Be sure to always keep updated backups and system images to be safe.



Contents

  • Option One: Create System Restore Point in System Properties
  • Option Two: Create System Restore Point in PowerShell




Option One

Create System Restore Point in System Properties


1 Open Settings (Win+I).

2 Click/tap on System on the left side, and click/tap on About on the right side. (see screenshot below)

Open About Settings

Create_restore_point_System_Properties-1.png

3 Click/tap on the System protection ("C:\Windows\System32\SystemPropertiesProtection.exe") link on the left side. You can now close Settings if you like. (see screenshot below)

Create_restore_point_System_Properties-2.png

4 Click/tap on the Create button. (see screenshot below)

Create_restore_point_System_Properties-3.png

5 Type a description you want for the restore point, and click/tap on Create. (see screenshot below)

The current date and time are automatically added to the restore point for reference.


Create_restore_point_System_Properties-4.png

6 System Protection will now create the restore point. (see screenshot below)

Create_restore_point_System_Properties-5.png

7 Click/tap on Close when the restore point was created successfully. (see screenshot below)

Create_restore_point_System_Properties-6.png

8 Click/tap on OK when finished. (see screenshot below)

Create_restore_point_System_Properties-7.png




Option Two

Create System Restore Point in PowerShell


To see more Checkpoint-Computer command usage details, see: Checkpoint-Computer | Microsoft Docs

By default, you will only be able to create a system restore point once every 1440 minutes (24 hours) using this option unless you change the SystemRestorePointCreationFrequency DWORD to how often you want instead. 0 minutes will allow you to always be able to create a system restore point without any time limit.

Create_restore_point_PowerShell-1.png


1 Open Windows Terminal (Admin), and select Windows PowerShell.

2 Type the command below into Windows Terminal (Admin), and press Enter. (see screenshot below)

Checkpoint-Computer -Description "Your Description" -RestorePointType "Type"

Substitute Your Description in the command above with any description (ex: "Restore Point Name") you want for the system restore point.

Substitute Type in the command above with a parameter in the table below that best specifies this type of restore point.

For example: Checkpoint-Computer -Description "Restore Point Name" -RestorePointType "MODIFY_SETTINGS"


Parameter to use in commandType
APPLICATION_INSTALLInstall
APPLICATION_UNINSTALLUninstall
DEVICE_DRIVER_INSTALLInstall
MODIFY_SETTINGSSystem

Create_restore_point_PowerShell-2.png


3 You can now close Windows Terminal (Admin) if you like.


That's it,
Shawn Brink


 

Attachments

  • System_Restore.png
    System_Restore.png
    9.1 KB · Views: 117
Last edited:
I noticed that system restore is off be default in windows 11 as well. I used to have your vbs script to turn on system restore and then name it whatever you would like. I heard vbs scripting is getting decrepitated though. Is the only way to do this through powershell now going forward?

If I was doing this through a bat file to call it, I guess I could just call the powershell script to run it.....
 

My Computers

System One System Two

  • OS
    Windows 11 Pro
    Computer type
    Laptop
    Manufacturer/Model
    Dell G15 5525
    CPU
    Ryzen 7 6800H
    Memory
    32 GB DDR5 4800mhz
    Graphics Card(s)
    RTX 3050 4GB Vram
    Screen Resolution
    1920 x 1080
    Hard Drives
    2TB Solidigm™ P41 Plus nvme
    Internet Speed
    800mbps down, 20 up
  • Operating System
    Windows 11
    Computer type
    Tablet
    Manufacturer/Model
    Lenovo ideapad flex 14API 2 in 1
    CPU
    Ryzen 5 3500u
    Motherboard
    LENOVO LNVNB161216 (FP5)
    Memory
    12GB DDR4
    Graphics card(s)
    AMD Radeon Vega 8 Graphics
    Hard Drives
    256 GB Samsung ssd nvme
I noticed that system restore is off be default in windows 11 as well. I used to have your vbs script to turn on system restore and then name it whatever you would like. I heard vbs scripting is getting decrepitated though. Is the only way to do this through powershell now going forward?

If I was doing this through a bat file to call it, I guess I could just call the powershell script to run it.....
Hello Andrew, :alien:

Yeah, PowerShell would be the best option to use since VBS will eventually be removed.

If you like, here are a couple of context menus added by the tutorials below to select from to make it easier to create restore points on demand.


 

My Computers

System One System Two

  • OS
    Windows 11 Pro for Workstations
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom self build
    CPU
    Intel i7-8700K 5 GHz
    Motherboard
    ASUS ROG Maximus XI Formula Z390
    Memory
    64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz (F4-3600C18D-32GTZR)
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING (11GB GDDR5X)
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    2 x Samsung Odyssey G75 27"
    Screen Resolution
    2560x1440
    Hard Drives
    1TB Samsung 990 PRO M.2,
    4TB Samsung 990 PRO M.2,
    8TB WD MyCloudEX2Ultra NAS
    PSU
    Seasonic Prime Titanium 850W
    Case
    Thermaltake Core P3 wall mounted
    Cooling
    Corsair Hydro H115i
    Keyboard
    Logitech wireless K800
    Mouse
    Logitech MX Master 3
    Internet Speed
    1 Gbps Download and 35 Mbps Upload
    Browser
    Google Chrome
    Antivirus
    Microsoft Defender and Malwarebytes Premium
    Other Info
    Logitech Z625 speaker system,
    Logitech BRIO 4K Pro webcam,
    HP Color LaserJet Pro MFP M477fdn,
    APC SMART-UPS RT 1000 XL - SURT1000XLI,
    Galaxy S23 Plus phone
  • Operating System
    Windows 11 Pro
    Computer type
    Laptop
    Manufacturer/Model
    HP Spectre x360 2in1 14-eu0098nr (2024)
    CPU
    Intel Core Ultra 7 155H 4.8 GHz
    Memory
    16 GB LPDDR5x-7467 MHz
    Graphics card(s)
    Integrated Intel Arc
    Sound Card
    Poly Studio
    Monitor(s) Displays
    14" 2.8K OLED multitouch
    Screen Resolution
    2880 x 1800
    Hard Drives
    2 TB PCIe NVMe M.2 SSD
    Internet Speed
    Intel Wi-Fi 7 BE200 (2x2) and Bluetooth 5.4
    Browser
    Chrome and Edge
    Antivirus
    Windows Defender and Malwarebytes Premium
Thanks brink. I have a batch file I use for malware removal and working on pcs so that's why I was asking. Sad about vbs.... Hopefully batch files never get discontinued haha.
 

My Computers

System One System Two

  • OS
    Windows 11 Pro
    Computer type
    Laptop
    Manufacturer/Model
    Dell G15 5525
    CPU
    Ryzen 7 6800H
    Memory
    32 GB DDR5 4800mhz
    Graphics Card(s)
    RTX 3050 4GB Vram
    Screen Resolution
    1920 x 1080
    Hard Drives
    2TB Solidigm™ P41 Plus nvme
    Internet Speed
    800mbps down, 20 up
  • Operating System
    Windows 11
    Computer type
    Tablet
    Manufacturer/Model
    Lenovo ideapad flex 14API 2 in 1
    CPU
    Ryzen 5 3500u
    Motherboard
    LENOVO LNVNB161216 (FP5)
    Memory
    12GB DDR4
    Graphics card(s)
    AMD Radeon Vega 8 Graphics
    Hard Drives
    256 GB Samsung ssd nvme
I got it working for anyone interested:

I have a flash drive I am running this bat from.

Batch:
:createrestorepoint
CLS
ECHO Now Enabling system Restore...This may take a few seconds...
regedit /s "%~d0\programs\computersecurity\computersecurity\scripts\Enable_System_Restore.reg"
regedit /s "%~d0\programs\computersecurity\computersecurity\scripts\Unlimited_SystemRestorePointCreationFrequency.reg
timeout /t 3 /nobreak >nul
CLS
ECHO Creating Restore Point......"Andrews Cleaning Utility"
timeout /t 3 /nobreak >nul
PowerShell -NoProfile -ExecutionPolicy Bypass -Command "& {Start-Process PowerShell -ArgumentList '-NoProfile -ExecutionPolicy Bypass -File """D:\programs\computersecurity\computersecurity\scripts\createrestorepoint.ps1"""' -Verb RunAs}"
ECHO Restore point Successfully Created!
timeout /t 10 /nobreak >nul
GOTO MENU


And then the powershell it points to does this:

Powershell:
param([switch]$Elevated)

function Test-Admin {
    $currentUser = New-Object Security.Principal.WindowsPrincipal $([Security.Principal.WindowsIdentity]::GetCurrent())
    $currentUser.IsInRole([Security.Principal.WindowsBuiltinRole]::Administrator)
}

if ((Test-Admin) -eq $false)  {
    if ($elevated) {
        # tried to elevate, did not work, aborting
    } else {
        Start-Process powershell.exe -Verb RunAs -ArgumentList ('-noprofile -noexit -file "{0}" -elevated' -f ($myinvocation.MyCommand.Definition))
    }
    exit
}

'running with full privileges'

Enable-ComputerRestore -Drive "C:\"; Checkpoint-Computer -Description "Andrews cleaning utility" -RestorePointType "MODIFY_SETTINGS"
On some computers the reg file would enable restore and some it would not (my thinking is 10 and 11 differences) so I added some extra steps to ensure its enabled before trying to create a new restore point.
 

My Computers

System One System Two

  • OS
    Windows 11 Pro
    Computer type
    Laptop
    Manufacturer/Model
    Dell G15 5525
    CPU
    Ryzen 7 6800H
    Memory
    32 GB DDR5 4800mhz
    Graphics Card(s)
    RTX 3050 4GB Vram
    Screen Resolution
    1920 x 1080
    Hard Drives
    2TB Solidigm™ P41 Plus nvme
    Internet Speed
    800mbps down, 20 up
  • Operating System
    Windows 11
    Computer type
    Tablet
    Manufacturer/Model
    Lenovo ideapad flex 14API 2 in 1
    CPU
    Ryzen 5 3500u
    Motherboard
    LENOVO LNVNB161216 (FP5)
    Memory
    12GB DDR4
    Graphics card(s)
    AMD Radeon Vega 8 Graphics
    Hard Drives
    256 GB Samsung ssd nvme
Since I want a new Restore Point, every day, without all the manual entries, I just put the script that I got from Brink, in my Startup folder.
So every day I get a new Restore Point, till they start dropping off into the ol' Bit Bucket.
I always have one when I need it.

Don't work for your computer, make it work for you!

TM :cool:
 

My Computer

System One

  • OS
    Win-11/Pro/64, Optimum 11 V5, 23H2 22631.3374
    Computer type
    PC/Desktop
    Manufacturer/Model
    Home Made w/Gigabyte mobo/DX-10
    CPU
    AMD FX 6350 Six Core
    Motherboard
    Gigabyte, DX-10, GA-78LMT-USB3
    Memory
    Crucial, 16 GB
    Graphics Card(s)
    NVIDEA GeForce 210, 1GB DDR3 Ram.
    Sound Card
    Onboard
    Monitor(s) Displays
    24" Acer
    Screen Resolution
    1280x800
    Hard Drives
    Crucial SSD 500GB, SanDisk 126GB SSD, Toshiba 1TB HD
    PSU
    EVGA 500 W.
    Case
    Pac Man, Mid Tower
    Cooling
    AMD/OEM
    Keyboard
    101 key, Backlit/ Mechanical Switches/
    Mouse
    Logitech USB Wireless M310
    Internet Speed
    Hughes Net speed varies with the weather
    Browser
    Firefox 64x
    Antivirus
    Windows Defender, Super Anti Spyware
    Other Info
    Given to me as DEAD, and irreparable.
    Rebuilt with Gigabyte mobo, AMD cpu, 16GB ram and 500GB Crucial SSD.
Can anyone write me a script that creates a weekly restore point as follows. TIA

Anytime after Friday, 10:00 pm, whenever the computer is switched on.

If the restore point is created on Friday, name the restore point Fri26Jan2024, for example. No more restore points until the following week.

If the restore point is created on Saturday, name the restore point Sat27Jan2024, for example. No more restore points until the following week.

If the restore point is created on Sunday, name the restore point Sun28Jan2024, for example. No more restore points until the following week.
 

My Computer

System One

  • OS
    Windows 10 Pro
Since I want a new Restore Point, every day, without all the manual entries, I just put the script that I got from Brink, in my Startup folder.
So every day I get a new Restore Point, till they start dropping off into the ol' Bit Bucket.
I always have one when I need it.

Don't work for your computer, make it work for you!

TM :cool:
What script is that?
 

My Computers

System One System Two

  • OS
    Windows 11 Pro
    Computer type
    PC/Desktop
    Manufacturer/Model
    Stigg's Build
    CPU
    Intel Core i9-10900X
    Motherboard
    GIGABYTE X299X DESIGNARE 10G
    Memory
    Corsair 64 GB (4 x 16 GB) CMW64GX4M4C3000C15 Vengeance RGB Pro 3000Mhz DDR4
    Graphics Card(s)
    GIGABYTE GeForce GTX 1660 Super Mini ITX 6 GB OC
    Sound Card
    Realtek ALC1220
    Monitor(s) Displays
    Samsung 27" FHD LED FreeSync Gaming Monitor (LS27F350FHEXXY)
    Screen Resolution
    1920 x 1080
    Hard Drives
    Samsung 970 Pro Series 1TB M.2 2280 NVMe SSD
    Western Digital Red Pro WD8003FFBX-68B9AN0 8 TB, 7200 RPM, SATA-III
    Western Digital Red Pro WD8003FFBX-68B9AN0 8 TB, 7200 RPM, SATA-III
    PSU
    Corsair HX1200 1200W 80 Plus Platinum
    Case
    Fractal Design Define 7 Black Solid Case
    Cooling
    Noctua NH-D15 Chromax Black
    Keyboard
    Razer Ornata V2
    Mouse
    Razer DeathAdder Essential
    Internet Speed
    FTTN 100Mbps / 40Mbps
    Browser
    Mozilla Firefox
    Antivirus
    N/A
    Other Info
    Logitech BRIO 4k Ultra HD USB-C Webcam
  • Operating System
    Windows 10 Pro
    Computer type
    Laptop
    Manufacturer/Model
    ASUS ROG Zephyrus M GM501GS
    CPU
    Core i7-8750H
    Motherboard
    Zephyrus M GM501GS
    Memory
    SK Hynix 32 GB (2 x 16 GB) HMA82GS6CJR8N-VK 16 GB DDR4-2666 DDR4 SDRAM
    Graphics card(s)
    NVIDIA GeForce GTX 1070
    Sound Card
    Realtek ALC294
    Monitor(s) Displays
    AU Optronics B156HAN07.1 [15.6" LCD]
    Screen Resolution
    1920 x 1080
    Hard Drives
    Samsung MZVKW512HMJP-00000 512 GB, PCI-E 3.0 x4
    Samsung SSD 860 QVO 4TB 4 TB, SATA-III
    PSU
    N/A
    Case
    N/A
    Cooling
    N/A
    Mouse
    Razer DeathAdder Essential
    Keyboard
    PC/AT Enhanced PS2 Keyboard (101/102-Key)
    Internet Speed
    FTTN 100Mbps / 40Mbps
    Browser
    Mozilla Firefox
    Antivirus
    N/A
    Other Info
    USB2.0 HD UVC Webcam
Can anyone write me a script that creates a weekly restore point as follows. TIA
[snipped]

Powershell:
#Requires -RunAsAdministrator
Set-StrictMode -Version 'latest'

function Get-NonUSBDrives
{
    Write-Output @(Get-CimInstance -ClassName 'Win32_DiskDrive' -Namespace 'root\cimv2' -Filter 'InterfaceType <> ''USB''' |
    Get-CimAssociatedInstance -ResultClassName 'Win32_DiskPartition' |
    Get-CimAssociatedInstance -ResultClassName 'Win32_LogicalDisk' |
    Select-Object -ExpandProperty 'Name')
}

$InformationPreference = [Management.Automation.ActionPreference]::Continue

if ((Get-CimInstance -ClassName 'SystemRestoreConfig' -Namespace 'root\default' -Property @('RPSessionInterval')).RPSessionInterval -eq 0)
{
    Write-Information 'System Restore is disabled.'
    Enable-ComputerRestore -Drive (Get-NonUSBDrives)
}

if ((Get-CimInstance -ClassName 'SystemRestoreConfig' -Namespace 'root\default' -Property @('RPSessionInterval')).RPSessionInterval -ne 0)
{
    switch ((Get-Date).DayOfWeek)
    {
        { $_ -in @([DayOfWeek]::Friday, [DayOfWeek]::Saturday, [DayOfWeek]::Sunday) }
        {
            Write-Information 'It''s backup day!'
            if ((Get-Date).Hour -ge 22)
            {
                Write-Information 'It''s backup time!'

                [DateTime]$lastRestorePointDateTime = [System.Management.ManagementDateTimeConverter]::ToDateTime((Get-ComputerRestorePoint | Sort-Object -Property @('CreationTime') | Select-Object -Last 1).CreationTime)
                if ((Get-Date).Subtract($lastRestorePointDateTime).TotalDays -gt 3)
                {
                    Write-Information 'Last restore point is more than three days old. Creating a restore point.'
                    [string]$restorePointName = (Get-Date).ToString("ddd_dd_MMM_yyyy") -replace '_', ([string]::Empty)
                    Write-Information "Restore Point Name: `"$($restorePointName)`""
                    ## Need to uncomment this to actually make a restore point.
                    ## Checkpoint-Computer -RestorePointType 'MODIFY_SETTINGS' -Description $restorePointName
                }
            }
            break
        }     
    }
}

Somethin' like that.
 

My Computers

System One System Two

  • OS
    Windows 11 Pro 23H2 [rev. 3447]
    Computer type
    PC/Desktop
    Manufacturer/Model
    Intel NUC12WSHi7
    CPU
    12th Gen Intel Core i7-1260P, 2100 MHz
    Motherboard
    NUC12WSBi7
    Memory
    64 GB
    Graphics Card(s)
    Intel Iris Xe
    Sound Card
    built-in Realtek HD audio
    Monitor(s) Displays
    Dell U3219Q
    Screen Resolution
    3840x2160 @ 60Hz
    Hard Drives
    Samsung SSD 990 PRO 1TB
    Keyboard
    CODE 104-Key Mechanical Keyboard with Cherry MX Clears
  • Operating System
    Linux Mint 21.2 (Cinnamon)
    Computer type
    PC/Desktop
    Manufacturer/Model
    Intel NUC8i5BEH
    CPU
    Intel Core i5-8259U CPU @ 2.30GHz
    Memory
    32 GB
    Graphics card(s)
    Iris Plus 655
    Keyboard
    CODE 104-Key Mechanical Keyboard - Cherry MX Clear
Powershell:
#Requires -RunAsAdministrator
Set-StrictMode -Version 'latest'

function Get-NonUSBDrives
{
    Write-Output @(Get-CimInstance -ClassName 'Win32_DiskDrive' -Namespace 'root\cimv2' -Filter 'InterfaceType <> ''USB''' |
    Get-CimAssociatedInstance -ResultClassName 'Win32_DiskPartition' |
    Get-CimAssociatedInstance -ResultClassName 'Win32_LogicalDisk' |
    Select-Object -ExpandProperty 'Name')
}

$InformationPreference = [Management.Automation.ActionPreference]::Continue

if ((Get-CimInstance -ClassName 'SystemRestoreConfig' -Namespace 'root\default' -Property @('RPSessionInterval')).RPSessionInterval -eq 0)
{
    Write-Information 'System Restore is disabled.'
    Enable-ComputerRestore -Drive (Get-NonUSBDrives)
}

if ((Get-CimInstance -ClassName 'SystemRestoreConfig' -Namespace 'root\default' -Property @('RPSessionInterval')).RPSessionInterval -ne 0)
{
    switch ((Get-Date).DayOfWeek)
    {
        { $_ -in @([DayOfWeek]::Friday, [DayOfWeek]::Saturday, [DayOfWeek]::Sunday) }
        {
            Write-Information 'It''s backup day!'
            if ((Get-Date).Hour -ge 20)
            {
                Write-Information 'It''s backup time!'

                [DateTime]$lastRestorePointDateTime = [System.Management.ManagementDateTimeConverter]::ToDateTime((Get-ComputerRestorePoint | Sort-Object -Property @('CreationTime') | Select-Object -Last 1).CreationTime)
                if ((Get-Date).Subtract($lastRestorePointDateTime).TotalDays -gt 3)
                {
                    Write-Information 'Last restore point is more than three days old. Creating a restore point.'
                    [string]$restorePointName = (Get-Date).ToString("ddd_dd_MMM_yyyy") -replace '_', ([string]::Empty)
                    Write-Information "Restore Point Name: `"$($restorePointName)`""
                    ## Need to uncomment this to actually make a restore point.
                    ## Checkpoint-Computer -RestorePointType 'MODIFY_SETTINGS' -Description $restorePointName
                }
            }
            break
        }     
    }
}

Somethin' like that.
Thanks, I asked Copilot to write the script and it came up with the following.
Anyone can check that, I am totally useless for writing scripts.
----------------
Sure, I can help you with that. Here’s a PowerShell script that creates a system restore point once a week on Fridays, Saturdays, and Sundays:
$dayOfWeek = (Get-Date).DayOfWeek
if ($dayOfWeek -eq "Friday" -or $dayOfWeek -eq "Saturday" -or $dayOfWeek -eq "Sunday") {
$dateString = Get-Date -Format "dddddMMMyyyy"
$description = "System Restore Point created on $dateString"
Checkpoint-Computer -Description $description -RestorePointType "MODIFY_SETTINGS"
}

This script checks if the current day is Friday, Saturday, or Sunday. If it is, it creates a system restore point with a name that includes the current date in the format of dddMMMyyyy, such as Fri26Jan2024, Sat27Jan2024, or Sun28Jan2024. If it is not one of these days, it does nothing.
To run this script automatically once a week, you can create a scheduled task in Windows Task Scheduler. Here are the steps:
  1. Open Task Scheduler by typing “Task Scheduler” in the Start menu search bar and selecting “Task Scheduler”.
  2. Click “Create Task” in the “Actions” pane on the right.
  3. Give the task a name and description.
  4. Under the “Triggers” tab, click “New” and select “Weekly”.
  5. Choose the day of the week and time you want the task to run.
  6. Under the “Actions” tab, click “New” and select “Start a program”.
  7. In the “Program/script” field, enter powershell.exe.
  8. In the “Add arguments (optional)” field, enter the path to the script file you created earlier.
  9. Click “OK” to save the task.
That’s it! The task will now run once a week on the day and time you specified, and create a system restore point if it is a Friday, Saturday, or Sunday.
 

My Computer

System One

  • OS
    Windows 10 Pro
Get-Date -Format "dddddMMMyyyy" would return FridayJan2024. Not quite what you wanted.

My script has extra steps to make sure System Restore is on, and to make sure the last restore point is more than three days old.

The Copilot script, if set to run weekly on Friday, Saturday and Sunday, would create restore points on all three days.
 

My Computers

System One System Two

  • OS
    Windows 11 Pro 23H2 [rev. 3447]
    Computer type
    PC/Desktop
    Manufacturer/Model
    Intel NUC12WSHi7
    CPU
    12th Gen Intel Core i7-1260P, 2100 MHz
    Motherboard
    NUC12WSBi7
    Memory
    64 GB
    Graphics Card(s)
    Intel Iris Xe
    Sound Card
    built-in Realtek HD audio
    Monitor(s) Displays
    Dell U3219Q
    Screen Resolution
    3840x2160 @ 60Hz
    Hard Drives
    Samsung SSD 990 PRO 1TB
    Keyboard
    CODE 104-Key Mechanical Keyboard with Cherry MX Clears
  • Operating System
    Linux Mint 21.2 (Cinnamon)
    Computer type
    PC/Desktop
    Manufacturer/Model
    Intel NUC8i5BEH
    CPU
    Intel Core i5-8259U CPU @ 2.30GHz
    Memory
    32 GB
    Graphics card(s)
    Iris Plus 655
    Keyboard
    CODE 104-Key Mechanical Keyboard - Cherry MX Clear
Get-Date -Format "dddddMMMyyyy" would return FridayJan2024. Not quite what you wanted.

My script has extra steps to make sure System Restore is on, and to make sure the last restore point is more than three days old.

The Copilot script, if set to run weekly on Friday, Saturday and Sunday, would create restore points on all three days.
THANKS! Do I need the weekly Task Scheduler as per Copilot so your script creates the once weekly restore points?
 

My Computer

System One

  • OS
    Windows 10 Pro
You could schedule mine to run weekly on Friday, Saturday and Sunday. It would only create a new restore point if the last one created was more than three days old.

By the way, my first post has if ((Get-Date).Hour -ge 20), because I was testing it after 8 PM. That 20 needs to be 22 (10 PM), as it is in my edited post.
 

My Computers

System One System Two

  • OS
    Windows 11 Pro 23H2 [rev. 3447]
    Computer type
    PC/Desktop
    Manufacturer/Model
    Intel NUC12WSHi7
    CPU
    12th Gen Intel Core i7-1260P, 2100 MHz
    Motherboard
    NUC12WSBi7
    Memory
    64 GB
    Graphics Card(s)
    Intel Iris Xe
    Sound Card
    built-in Realtek HD audio
    Monitor(s) Displays
    Dell U3219Q
    Screen Resolution
    3840x2160 @ 60Hz
    Hard Drives
    Samsung SSD 990 PRO 1TB
    Keyboard
    CODE 104-Key Mechanical Keyboard with Cherry MX Clears
  • Operating System
    Linux Mint 21.2 (Cinnamon)
    Computer type
    PC/Desktop
    Manufacturer/Model
    Intel NUC8i5BEH
    CPU
    Intel Core i5-8259U CPU @ 2.30GHz
    Memory
    32 GB
    Graphics card(s)
    Iris Plus 655
    Keyboard
    CODE 104-Key Mechanical Keyboard - Cherry MX Clear
Thanks @pseymour ! It will take me some time to verify things experimentally as my scripting skills are next to nil. But this is a good start (y)
 

My Computer

System One

  • OS
    Windows 10 Pro

Latest Support Threads

Back
Top Bottom