From 0363e21edbea33b43e83c06fd5b4c17d6fcada17 Mon Sep 17 00:00:00 2001 From: Romain <96626929+Romanitho@users.noreply.github.com> Date: Sun, 23 Apr 2023 16:25:05 +0200 Subject: [PATCH] details --- README.md | 2 +- Winget-AutoUpdate-Install.ps1 | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) 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 }