Romanitho / Winget-AutoUpdate

WAU daily updates apps as system and notify connected users. (Allowlist and Blocklist support)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Bug]: Blacklist doesn't work in user context

newmrac opened this issue · comments

The problem

Hi. We are using WAU in a system+user context, managed by GPO.
If an application is installed in the system context, WAU respects the blacklist correctly.
If an application is installed in the user's context, WAU ignores the blacklist.
Example: I added "Microsoft.Office" and "Postman.Postman" to exclusions.
After starting WAU in the system context it skips the update of the "Microsoft.Office" packet.
But in the user's context, it updates "Postman.Postman"

What version of WAU has the issue?

1.20.1-0

What version of Windows are you using (ex. Windows 11 22H2)?

Windows 11 23H2

What version of winget are you using?

1.7.10861

Log information

################################################################
#     16/04/2024 - CHECK FOR APP UPDATES (System context - No ServiceUI)
################################################################
20:46:15 - WAU Policies management Enabled.
20:46:15 - Notification Level: Full. Notification Language: English
20:46:15 - Checking internet connection...
20:46:16 - Connected !
20:46:16 - Winget Version: v1.7.10861
20:46:16 - WAU current version: 1.20.1-0
20:46:16 - WAU AutoUpdate is Enabled.
20:46:16 - WAU AutoUpdate Pre-release versions is Enabled
20:46:17 - WAU is up to date.
20:46:17 - WAU uses External Lists from: GPO
20:46:17 - WAU uses Black List config
20:46:17 - Exclude app SergeyMoskalev.CarambaSwitcher
20:46:17 - Exclude app Opera.Opera
20:46:17 - Exclude app PostgreSQL.PostgreSQL
20:46:17 - Exclude app Mobatek.MobaXterm
20:46:17 - Exclude app JetBrains.IntelliJIDEA.Community.EAP
20:46:17 - Exclude app JetBrains.IntelliJIDEA.Edu
20:46:17 - Exclude app JetBrains.IntelliJIDEA.Community
20:46:17 - Exclude app JetBrains.IntelliJIDEA.Ultimate
20:46:17 - Exclude app JetBrains.IntelliJIDEA.Ultimate.EAP
20:46:17 - Exclude app JetBrains.GoLand
20:46:17 - Exclude app JetBrains.GoLand.EarlyAccess
20:46:17 - Exclude app JetBrains.PyCharm.Professional
20:46:17 - Exclude app JetBrains.PyCharm.Professional.EAP
20:46:17 - Exclude app JetBrains.PHPStorm.EarlyAccess
20:46:17 - Exclude app JetBrains.PHPStorm
20:46:17 - Exclude app JetBrains.CLion
20:46:17 - Exclude app JetBrains.WebStorm.EAP
20:46:17 - Exclude app JetBrains.WebStorm
20:46:17 - Exclude app JetBrains.PyCharm.Community.EAP
20:46:17 - Exclude app JetBrains.PyCharm.Community
20:46:17 - Exclude app SlackTechnologies.Slack
20:46:17 - Exclude app SlackTechnologies.Slack.Beta
20:46:17 - Exclude app Telegram.TelegramDesktop
20:46:17 - Exclude app Postman.Postman
20:46:17 - Exclude app Microsoft.Office
20:46:17 - Checking application updates on Winget Repository...
-> Available update : Microsoft 365 Apps for enterprise - en-us. Current version : 16.0.17425.20176. Available version : 16.0.17531.20046.
20:46:19 - Microsoft 365 Apps for enterprise - en-us : Skipped upgrade because it is in the excluded app list
20:46:19 - No new update.
20:46:20 - User logged on, get a list of installed Winget apps in System context...
20:46:33 - Starting WAU in User context...
 
################################################################
#     16/04/2024 - CHECK FOR APP UPDATES (User context)
################################################################
20:46:33 - WAU Policies management Enabled.
20:46:33 - Notification Level: Full. Notification Language: English
20:46:33 - Checking internet connection...
20:46:34 - Connected !
20:46:34 - Winget Version: v1.7.10861
20:46:34 - WAU current version: 1.20.1-0
20:46:34 - WAU uses Black List config
20:46:34 - Exclude app SergeyMoskalev.CarambaSwitcher
20:46:34 - Exclude app Opera.Opera
20:46:34 - Exclude app PostgreSQL.PostgreSQL
20:46:34 - Exclude app Mobatek.MobaXterm
20:46:34 - Exclude app JetBrains.IntelliJIDEA.Community.EAP
20:46:34 - Exclude app JetBrains.IntelliJIDEA.Edu
20:46:34 - Exclude app JetBrains.IntelliJIDEA.Community
20:46:34 - Exclude app JetBrains.IntelliJIDEA.Ultimate
20:46:34 - Exclude app JetBrains.IntelliJIDEA.Ultimate.EAP
20:46:34 - Exclude app JetBrains.GoLand
20:46:34 - Exclude app JetBrains.GoLand.EarlyAccess
20:46:34 - Exclude app JetBrains.PyCharm.Professional
20:46:34 - Exclude app JetBrains.PyCharm.Professional.EAP
20:46:34 - Exclude app JetBrains.PHPStorm.EarlyAccess
20:46:34 - Exclude app JetBrains.PHPStorm
20:46:34 - Exclude app JetBrains.CLion
20:46:34 - Exclude app JetBrains.WebStorm.EAP
20:46:34 - Exclude app JetBrains.WebStorm
20:46:34 - Exclude app JetBrains.PyCharm.Community.EAP
20:46:34 - Exclude app JetBrains.PyCharm.Community
20:46:34 - Exclude app SlackTechnologies.Slack
20:46:34 - Exclude app SlackTechnologies.Slack.Beta
20:46:34 - Exclude app Telegram.TelegramDesktop
20:46:34 - Exclude app Postman.Postman
20:46:34 - Exclude app Microsoft.Office
20:46:34 - Checking application updates on Winget Repository...
-> Available update : Postman x86_64 9.31.0. Current version : 9.31.0. Available version : 10.24.16.
20:46:36 - Bypass system list in user context is Enabled.
20:46:37 - Updating Postman x86_64 9.31.0 from 9.31.0 to 10.24.16...
20:46:40 - ##########   WINGET UPGRADE PROCESS STARTS FOR APPLICATION ID 'Postman.Postman'   ##########
20:46:40 - -> Running: Winget upgrade --id Postman.Postman -e --accept-package-agreements --accept-source-agreements -s winget -h

Found Postman [Postman.Postman] Version 10.24.16
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
Downloading https://dl.pstmn.io/download/version/10.24.16/win64

Additional information

No response

20:46:36 - Bypass system list in user context is Enabled.

It looks like you have installed WAU with:
-BypassListForUsers
Bypass Black/White list when run in user context.

Then it's the expected behavior.

Yes, you are right. Not a bug. Thank you!