commit
f4cf573296
|
@ -11,6 +11,8 @@ function Invoke-PostUpdateActions {
|
||||||
#If multiple version, pick last one
|
#If multiple version, pick last one
|
||||||
$WingetPath = $ResolveWingetPath[-1].Path
|
$WingetPath = $ResolveWingetPath[-1].Path
|
||||||
& $WingetPath source reset --force
|
& $WingetPath source reset --force
|
||||||
|
|
||||||
|
#log
|
||||||
Write-Log "-> Winget sources reseted." "green"
|
Write-Log "-> Winget sources reseted." "green"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -105,6 +107,9 @@ function Invoke-PostUpdateActions {
|
||||||
$sec = $task.GetSecurityDescriptor(0xF)
|
$sec = $task.GetSecurityDescriptor(0xF)
|
||||||
$sec = $sec + '(A;;GRGX;;;AU)'
|
$sec = $sec + '(A;;GRGX;;;AU)'
|
||||||
$task.SetSecurityDescriptor($sec, 0)
|
$task.SetSecurityDescriptor($sec, 0)
|
||||||
|
|
||||||
|
#log
|
||||||
|
Write-Log "-> 'Winget-AutoUpdate-UserContext' scheduled task created." "green"
|
||||||
}
|
}
|
||||||
|
|
||||||
#Set ACL for users on logfile
|
#Set ACL for users on logfile
|
||||||
|
|
Loading…
Reference in New Issue