Merge pull request #194 from Romanitho/log

a bit of logs
pull/195/head
Romain 2022-10-18 21:06:01 +02:00 committed by GitHub
commit f4cf573296
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -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