From 250f3a988782580d89de3fe41c9dd26f48bf1f1c Mon Sep 17 00:00:00 2001 From: Romain <96626929+Romanitho@users.noreply.github.com> Date: Tue, 18 Oct 2022 17:44:44 +0200 Subject: [PATCH] a bit of logs --- Winget-AutoUpdate/functions/Invoke-PostUpdateActions.ps1 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Winget-AutoUpdate/functions/Invoke-PostUpdateActions.ps1 b/Winget-AutoUpdate/functions/Invoke-PostUpdateActions.ps1 index e751c1f..b14926a 100644 --- a/Winget-AutoUpdate/functions/Invoke-PostUpdateActions.ps1 +++ b/Winget-AutoUpdate/functions/Invoke-PostUpdateActions.ps1 @@ -11,6 +11,8 @@ function Invoke-PostUpdateActions { #If multiple version, pick last one $WingetPath = $ResolveWingetPath[-1].Path & $WingetPath source reset --force + + #log Write-Log "-> Winget sources reseted." "green" } @@ -105,6 +107,9 @@ function Invoke-PostUpdateActions { $sec = $task.GetSecurityDescriptor(0xF) $sec = $sec + '(A;;GRGX;;;AU)' $task.SetSecurityDescriptor($sec, 0) + + #log + Write-Log "-> 'Winget-AutoUpdate-UserContext' scheduled task created." "green" } #Set ACL for users on logfile