diff --git a/README.md b/README.md index 0df75ce..6aea834 100644 --- a/README.md +++ b/README.md @@ -154,7 +154,7 @@ Specify the update frequency: Daily (Default), BiDaily, Weekly, BiWeekly, Monthl **-UpdatesAtTime** Specify the time of the update interval execution time. Default 6AM. (From version 1.15.0). -**WAU_UserApproval** +**-UserApproval** Specify if user approval is needed before updating apps **-RunOnMetered** diff --git a/Winget-AutoUpdate-Install.ps1 b/Winget-AutoUpdate-Install.ps1 index 930e1ad..cf62b27 100644 --- a/Winget-AutoUpdate-Install.ps1 +++ b/Winget-AutoUpdate-Install.ps1 @@ -67,6 +67,9 @@ Run WAU on metered connection. Default No. .PARAMETER InstallUserContext Install WAU with system and user context executions +.PARAMETER UserApproval +Specify if user approval is needed before updating apps + .PARAMETER BypassListForUsers Configure WAU to bypass the Black/White list when run in user context @@ -374,7 +377,7 @@ function Install-WingetAutoUpdate { if ($BypassListForUsers) { New-ItemProperty $regPath -Name WAU_BypassListForUsers -Value 1 -PropertyType DWord -Force | Out-Null } - if ($WAU_UserApproval) { + if ($UserApproval) { New-ItemProperty $regPath -Name WAU_UserApproval -Value 1 -PropertyType DWord -Force | Out-Null }