From 64db5cc85b0709c83eae2b4841cdd8d86e88b74c Mon Sep 17 00:00:00 2001 From: Stephen Harris Date: Wed, 9 Aug 2023 15:23:15 +0100 Subject: [PATCH] Add Message confirming restore point created (#953) --- functions/private/Set-WinUtilRestorePoint.ps1 | 1 + winutil.ps1 | 7 ++++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/functions/private/Set-WinUtilRestorePoint.ps1 b/functions/private/Set-WinUtilRestorePoint.ps1 index 033132dc54..20439e7036 100644 --- a/functions/private/Set-WinUtilRestorePoint.ps1 +++ b/functions/private/Set-WinUtilRestorePoint.ps1 @@ -28,5 +28,6 @@ function Set-WinUtilRestorePoint { $description = "System Restore Point created by WinUtil" Checkpoint-Computer -Description $description -RestorePointType "MODIFY_SETTINGS" + Write-Host -ForegroundColor Green "System Restore Point Created Successfully" } } diff --git a/winutil.ps1 b/winutil.ps1 index bbaa7998b3..e089de5dbb 100644 --- a/winutil.ps1 +++ b/winutil.ps1 @@ -10,7 +10,7 @@ Author : Chris Titus @christitustech Runspace Author: @DeveloperDurp GitHub : https://github.com/ChrisTitusTech - Version : 23.08.08 + Version : 23.08.09 #> Start-Transcript $ENV:TEMP\Winutil.log -Append @@ -21,7 +21,7 @@ Add-Type -AssemblyName System.Windows.Forms # variable to sync between runspaces $sync = [Hashtable]::Synchronized(@{}) $sync.PSScriptRoot = $PSScriptRoot -$sync.version = "23.08.08" +$sync.version = "23.08.09" $sync.configs = @{} $sync.ProcessRunning = $false @@ -788,6 +788,7 @@ function Set-WinUtilRestorePoint { $description = "System Restore Point created by WinUtil" Checkpoint-Computer -Description $description -RestorePointType "MODIFY_SETTINGS" + Write-Host -ForegroundColor Green "System Restore Point Created Successfully" } } function Set-WinUtilScheduledTask { @@ -5854,7 +5855,7 @@ catch [System.Management.Automation.MethodInvocationException] { } } catch { - # If it broke some other way ???? + # If it broke some other way ?? Write-Host "Unable to load Windows.Markup.XamlReader. Double-check syntax and ensure .net is installed." }