Skip to content

Commit

Permalink
Add Message confirming restore point created (#953)
Browse files Browse the repository at this point in the history
  • Loading branch information
hypertux001 authored Aug 9, 2023
1 parent 8e138c3 commit 64db5cc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions functions/private/Set-WinUtilRestorePoint.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
7 changes: 4 additions & 3 deletions winutil.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand Down Expand Up @@ -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 {
Expand Down Expand Up @@ -5854,7 +5855,7 @@ catch [System.Management.Automation.MethodInvocationException] {
}
}
catch {
# If it broke some other way <img draggable="false" role="img" class="emoji" alt="????" src="https://s0.wp.com/wp-content/mu-plugins/wpcom-smileys/twemoji/2/svg/1f600.svg">
# If it broke some other way <img draggable="false" role="img" class="emoji" alt="??" src="https://s0.wp.com/wp-content/mu-plugins/wpcom-smileys/twemoji/2/svg/1f600.svg">
Write-Host "Unable to load Windows.Markup.XamlReader. Double-check syntax and ensure .net is installed."
}

Expand Down

0 comments on commit 64db5cc

Please sign in to comment.