This PowerShell Script shows how to create custom refresh image.
Windows refresh feature doesn’t allow you to create custom refresh points like Windows System Restore does. Instead, Refresh creates a Windows Installer Image to help it restore settings to default state. This script can do it.
You can find more All-In-One Script Framework script samples at https://aka.ms/onescriptingallery