[Bug]: Local winget pin list is ignored
The problem
I have maintained manually a list of applications being pined to a certain version in winget. It seems that this list is ignored.
What version of WAU has the issue?
1.20.0
What version of Windows are you using (ex. Windows 11 22H2)?
10.0.26120
What version of winget are you using?
1.9.2411-preview
Log information
################################################################
# 9/24/2024 - CHECK FOR APP UPDATES (System context - Connected user)
################################################################
13:00:05 - Notification Level: Full. Notification Language: English
13:00:05 - Checking internet connection...
13:00:05 - Connected !
13:00:05 - Winget Version: v1.9.2411-preview
13:00:05 - WAU current version: 1.20.0
13:00:05 - WAU AutoUpdate is Disabled.
13:00:05 - WAU uses External Lists from: C:\ProgramData\Winget-AutoUpdate-Configurator
13:00:05 - Newer List downloaded/copied to local path: C:\ProgramData\Winget-AutoUpdate
13:00:05 - WAU uses External Mods from: C:\ProgramData\Winget-AutoUpdate-Configurator\mods
13:00:05 - Mods are up to date.
13:00:05 - WAU uses Black List config
13:00:05 - Checking application updates on Winget Repository...
-> Available update : Microsoft.WindowsTerminal. Current version : 1.18.10301.0. Available version : 1.21.2361.0.
-> Available update : Visual Studio Professional 2022 Preview. Current version : 17.11.0 Preview 2.1. Available version : 17.12.0.
-> Available update : PDF-XChange PRO R02. Current version : 8.0.343.0. Available version : 10.4.0.388.
-> Available update : Teams Machine-Wide Installer. Current version : 1.5.0.8070. Available version : 1.7.00.26062.
-> Available update : SafeNet Authentication Client 10.9. Current version : 10.9.3120.0. Available version : 10.9.3283.0.
13:00:09 - Updating Microsoft.WindowsTerminal from 1.18.10301.0 to 1.21.2361.0...
13:00:13 - ########## WINGET UPGRADE PROCESS STARTS FOR APPLICATION ID 'Microsoft.WindowsTerminal' ##########
13:00:13 - -> Running: Winget upgrade --id Microsoft.WindowsTerminal -e --accept-package-agreements --accept-source-agreements -s winget -h
██████████▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ 1024 KB / 2.75 MB
█████████████████████▒▒▒▒▒▒▒▒▒ 2.00 MB / 2.75 MB
██████████████████████████████ 2.75 MB / 2.75 MB
Found Windows Terminal [Microsoft.WindowsTerminal] Version 1.21.2361.0
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
This package requires the following dependencies:
- Packages
(1/1) Found Microsoft.UI.Xaml [Microsoft.UI.Xaml.2.8] Version 8.2310.30001.0
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
Successfully verified installer hash
Starting package install...
▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ 2%
▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ 2%
██████████████▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ 48%
████████████████████████████▒▒ 95%
Installer failed with exit code: 0x80070057 : The parameter is incorrect.
13:00:19 - -> An upgrade for Microsoft.WindowsTerminal failed, now trying an install instead... (1/2)
13:00:19 - -> Running: Winget install --id Microsoft.WindowsTerminal -e --accept-package-agreements --accept-source-agreements -s winget -h --force
██████████▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ 1024 KB / 2.75 MB
█████████████████████▒▒▒▒▒▒▒▒▒ 2.00 MB / 2.75 MB
██████████████████████████████ 2.75 MB / 2.75 MB
Found Windows Terminal [Microsoft.WindowsTerminal] Version 1.21.2361.0
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
This package requires the following dependencies:
- Packages
(1/1) Found Microsoft.UI.Xaml [Microsoft.UI.Xaml.2.8] Version 8.2310.30001.0
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
Successfully verified installer hash
Starting package install...
▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ 2%
▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ 2%
██████████████▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ 48%
████████████████████████████▒▒ 95%
Installer failed with exit code: 0x80070057 : The parameter is incorrect.
13:00:23 - -> An upgrade for Microsoft.WindowsTerminal failed, now trying an install instead... (2/2)
13:00:23 - -> Running: Winget install --id Microsoft.WindowsTerminal -e --accept-package-agreements --accept-source-agreements -s winget -h --force
██████████▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ 1024 KB / 2.75 MB
█████████████████████▒▒▒▒▒▒▒▒▒ 2.00 MB / 2.75 MB
██████████████████████████████ 2.75 MB / 2.75 MB
Found Windows Terminal [Microsoft.WindowsTerminal] Version 1.21.2361.0
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
This package requires the following dependencies:
- Packages
(1/1) Found Microsoft.UI.Xaml [Microsoft.UI.Xaml.2.8] Version 8.2310.30001.0
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
Successfully verified installer hash
Starting package install...
▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ 2%
▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ 2%
██████████████▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ 48%
████████████████████████████▒▒ 95%
████████████████████████████▒▒ 95%
Installer failed with exit code: 0x80070057 : The parameter is incorrect.
13:00:26 - ########## WINGET UPGRADE PROCESS FINISHED FOR APPLICATION ID 'Microsoft.WindowsTerminal' ##########
13:00:26 - Microsoft.WindowsTerminal update failed.
13:00:31 - Updating Visual Studio Professional 2022 Preview from 17.11.0 Preview 2.1 to 17.12.0...
13:00:35 - ########## WINGET UPGRADE PROCESS STARTS FOR APPLICATION ID 'Microsoft.VisualStudio.2022.Professional.Prev' ##########
13:00:35 - -> Running: Winget upgrade --id Microsoft.VisualStudio.2022.Professional.Prev -e --accept-package-agreements --accept-source-agreements -s winget -h
██████████▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ 1024 KB / 2.75 MB
█████████████████████▒▒▒▒▒▒▒▒▒ 2.00 MB / 2.75 MB
██████████████████████████████ 2.75 MB / 2.75 MB
No installed package found matching input criteria.
13:00:38 - -> An upgrade for Visual Studio Professional 2022 Preview failed, now trying an install instead... (1/2)
13:00:38 - -> Running: Winget install --id Microsoft.VisualStudio.2022.Professional.Prev -e --accept-package-agreements --accept-source-agreements -s winget -h --force
██████████▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ 1024 KB / 2.75 MB
█████████████████████▒▒▒▒▒▒▒▒▒ 2.00 MB / 2.75 MB
██████████████████████████████ 2.75 MB / 2.75 MB
No package found matching input criteria.
13:00:41 - -> An upgrade for Visual Studio Professional 2022 Preview failed, now trying an install instead... (2/2)
13:00:41 - -> Running: Winget install --id Microsoft.VisualStudio.2022.Professional.Prev -e --accept-package-agreements --accept-source-agreements -s winget -h --force
██████████▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ 1024 KB / 2.75 MB
█████████████████████▒▒▒▒▒▒▒▒▒ 2.00 MB / 2.75 MB
██████████████████████████████ 2.75 MB / 2.75 MB
No package found matching input criteria.
13:00:43 - ########## WINGET UPGRADE PROCESS FINISHED FOR APPLICATION ID 'Microsoft.VisualStudio.2022.Professional.Prev' ##########
13:00:43 - Visual Studio Professional 2022 Preview update failed.
13:00:47 - PDF-XChange PRO R02 : Skipped upgrade because it is in the excluded app list
13:00:47 - Teams Machine-Wide Installer : Skipped upgrade because it is in the excluded app list
13:00:47 - SafeNet Authentication Client 10.9 : Skipped upgrade because it is in the excluded app list
13:00:47 - No new update.
13:00:47 - Creating SymLink for log file (WAU-updates) in Intune Management Extension log folder
13:00:48 - User logged on, get a list of installed Winget apps in System context...
13:00:50 - Starting WAU in User context...
################################################################
# 9/24/2024 - CHECK FOR APP UPDATES (User context)
################################################################
13:00:51 - Notification Level: Full. Notification Language: English
13:00:51 - Checking internet connection...
13:00:51 - Connected !
13:00:52 - Winget Version: v1.9.2411-preview
13:00:52 - WAU current version: 1.20.0
13:00:52 - WAU uses Black List config
13:00:52 - Checking application updates on Winget Repository...
13:00:55 - No new update.
13:00:55 - End of process!
################################################################
# 9/24/2024 - CHECK FOR APP UPDATES (System context - Connected user)
################################################################
13:41:14 - Notification Level: Full. Notification Language: English
13:41:14 - Checking internet connection...
13:41:14 - Connected !
13:41:14 - Winget Version: v1.9.2411-preview
13:41:14 - WAU current version: 1.20.0
13:41:14 - WAU AutoUpdate is Disabled.
13:41:14 - WAU uses External Lists from: C:\ProgramData\Winget-AutoUpdate-Configurator
13:41:14 - List (black) is up to date.
13:41:14 - WAU uses External Mods from: C:\ProgramData\Winget-AutoUpdate-Configurator\mods
13:41:14 - Mods are up to date.
13:41:14 - WAU uses Black List config
13:41:14 - Checking application updates on Winget Repository...
-> Available update : SafeNet Authentication Client 10.9. Current version : 10.9.3120.0. Available version : 10.9.3283.0.
-> Available update : Visual Studio Professional 2022 Preview. Current version : 17.11.0 Preview 2.1. Available version : 17.12.0.
-> Available update : PDF-XChange PRO R02. Current version : 8.0.343.0. Available version : 10.4.0.388.
-> Available update : Teams Machine-Wide Installer. Current version : 1.5.0.8070. Available version : 1.7.00.26062.
-> Available update : Microsoft.WindowsTerminal. Current version : 1.18.10301.0. Available version : 1.21.2361.0.
13:41:16 - SafeNet Authentication Client 10.9 : Skipped upgrade because it is in the excluded app list
13:41:17 - Updating Visual Studio Professional 2022 Preview from 17.11.0 Preview 2.1 to 17.12.0...
13:41:22 - ########## WINGET UPGRADE PROCESS STARTS FOR APPLICATION ID 'Microsoft.VisualStudio.2022.Professional.Prev' ##########
13:41:22 - -> Running: Winget upgrade --id Microsoft.VisualStudio.2022.Professional.Prev -e --accept-package-agreements --accept-source-agreements -s winget -h
██████████▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ 1024 KB / 2.75 MB
█████████████████████▒▒▒▒▒▒▒▒▒ 2.00 MB / 2.75 MB
██████████████████████████████ 2.75 MB / 2.75 MB
No installed package found matching input criteria.
13:41:25 - -> An upgrade for Visual Studio Professional 2022 Preview failed, now trying an install instead... (1/2)
13:41:25 - -> Running: Winget install --id Microsoft.VisualStudio.2022.Professional.Prev -e --accept-package-agreements --accept-source-agreements -s winget -h --force
██████████▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ 1024 KB / 2.75 MB
█████████████████████▒▒▒▒▒▒▒▒▒ 2.00 MB / 2.75 MB
██████████████████████████████ 2.75 MB / 2.75 MB
No package found matching input criteria.
13:41:28 - -> An upgrade for Visual Studio Professional 2022 Preview failed, now trying an install instead... (2/2)
13:41:28 - -> Running: Winget install --id Microsoft.VisualStudio.2022.Professional.Prev -e --accept-package-agreements --accept-source-agreements -s winget -h --force
██████████▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ 1024 KB / 2.75 MB
█████████████████████▒▒▒▒▒▒▒▒▒ 2.00 MB / 2.75 MB
██████████████████████████████ 2.75 MB / 2.75 MB
No package found matching input criteria.
13:41:31 - ########## WINGET UPGRADE PROCESS FINISHED FOR APPLICATION ID 'Microsoft.VisualStudio.2022.Professional.Prev' ##########
13:41:31 - Visual Studio Professional 2022 Preview update failed.
13:41:34 - PDF-XChange PRO R02 : Skipped upgrade because it is in the excluded app list
13:41:34 - Teams Machine-Wide Installer : Skipped upgrade because it is in the excluded app list
13:41:36 - Updating Microsoft.WindowsTerminal from 1.18.10301.0 to 1.21.2361.0...
13:41:40 - ########## WINGET UPGRADE PROCESS STARTS FOR APPLICATION ID 'Microsoft.WindowsTerminal' ##########
13:41:40 - -> Running: Winget upgrade --id Microsoft.WindowsTerminal -e --accept-package-agreements --accept-source-agreements -s winget -h
██████████▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ 1024 KB / 2.75 MB
█████████████████████▒▒▒▒▒▒▒▒▒ 2.00 MB / 2.75 MB
██████████████████████████████ 2.75 MB / 2.75 MB
Found Windows Terminal [Microsoft.WindowsTerminal] Version 1.21.2361.0
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
This package requires the following dependencies:
- Packages
(1/1) Found Microsoft.UI.Xaml [Microsoft.UI.Xaml.2.8] Version 8.2310.30001.0
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
Successfully verified installer hash
Starting package install...
▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ 2%
▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ 2%
██████████████▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ 48%
████████████████████████████▒▒ 95%
Installer failed with exit code: 0x80070057 : The parameter is incorrect.
13:41:44 - -> An upgrade for Microsoft.WindowsTerminal failed, now trying an install instead... (1/2)
13:41:44 - -> Running: Winget install --id Microsoft.WindowsTerminal -e --accept-package-agreements --accept-source-agreements -s winget -h --force
██████████▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ 1024 KB / 2.75 MB
█████████████████████▒▒▒▒▒▒▒▒▒ 2.00 MB / 2.75 MB
██████████████████████████████ 2.75 MB / 2.75 MB
Found Windows Terminal [Microsoft.WindowsTerminal] Version 1.21.2361.0
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
This package requires the following dependencies:
- Packages
(1/1) Found Microsoft.UI.Xaml [Microsoft.UI.Xaml.2.8] Version 8.2310.30001.0
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
Successfully verified installer hash
Starting package install...
▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ 2%
▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ 2%
██████████████▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ 48%
████████████████████████████▒▒ 95%
Installer failed with exit code: 0x80070057 : The parameter is incorrect.
13:41:48 - -> An upgrade for Microsoft.WindowsTerminal failed, now trying an install instead... (2/2)
13:41:48 - -> Running: Winget install --id Microsoft.WindowsTerminal -e --accept-package-agreements --accept-source-agreements -s winget -h --force
██████████▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ 1024 KB / 2.75 MB
█████████████████████▒▒▒▒▒▒▒▒▒ 2.00 MB / 2.75 MB
██████████████████████████████ 2.75 MB / 2.75 MB
Found Windows Terminal [Microsoft.WindowsTerminal] Version 1.21.2361.0
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
This package requires the following dependencies:
- Packages
(1/1) Found Microsoft.UI.Xaml [Microsoft.UI.Xaml.2.8] Version 8.2310.30001.0
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
Successfully verified installer hash
Starting package install...
▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ 2%
▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ 2%
██████████████▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ 48%
████████████████████████████▒▒ 95%
████████████████████████████▒▒ 95%
Installer failed with exit code: 0x80070057 : The parameter is incorrect.
13:41:51 - ########## WINGET UPGRADE PROCESS FINISHED FOR APPLICATION ID 'Microsoft.WindowsTerminal' ##########
13:41:51 - Microsoft.WindowsTerminal update failed.
13:41:55 - No new update.
13:41:55 - Creating SymLink for log file (WAU-updates) in Intune Management Extension log folder
13:41:56 - User logged on, get a list of installed Winget apps in System context...
13:41:58 - Starting WAU in User context...
################################################################
# 9/24/2024 - CHECK FOR APP UPDATES (User context)
################################################################
13:41:59 - Notification Level: Full. Notification Language: English
13:41:59 - Checking internet connection...
13:41:59 - Connected !
13:41:59 - Winget Version: v1.9.2411-preview
13:41:59 - WAU current version: 1.20.0
13:41:59 - WAU uses Black List config
13:41:59 - Checking application updates on Winget Repository...
13:42:01 - No new update.
13:42:01 - End of process!
Additional information
No response
And here is my pin list:
z002m76a winget pin list Name Id Version Source Pin type
Microsoft Teams Microsoft.Teams 24231.512.3106.6573 winget Gating Microsoft 365 Apps for Enterprise - de-de Microsoft.Office 16.0.17830.20210 winget Gating PDF-XChange PRO R02 TrackerSoftware.PDF-XChangePRO 8.0.343.0 winget Pinning Visual Studio Professional 2022 Preview Microsoft.VisualStudio.2022.Professional… 17.11.0 Preview 2.1 winget Pinning SafeNet Authentication Client 10.9 Thales.SafeNetAuthenticationClient 10.9.3120.0 winget Pinning z002m76a ~ in pwsh at 13:46:05
WAU doesn't use the pin feature of Winget. You must use White or Blacklist.
I assume this could be added by changing this line, correct?
https://github.com/Romanitho/Winget-AutoUpdate/blob/b247463a98ca3689a60e3193a09f03210a42309d/Sources/Winget-AutoUpdate/functions/Get-WingetOutdatedApps.ps1#L12
Could be, yes
Would be nice to have option to make WAU use pin list.
We primarily focused our efforts on implementing an MSI version of WAU. We simply want to ensure it is stable enough to release this v2. Then, naturally, we can add an option (or consider it) for pinned apps. I would suggest handling pinned apps in blacklist mode and bypassing pinned apps in whitelist mode.
I would highly appreciate such a behavior. My current problem is that someone in the IT department centrally rolled the AutoUpdate out accompanied with a limited blacklist. Now I'm constantly getting notifications telling me that AutoUpdate failed for certain packages which I have pinned in my personal account because I already know that they can't be updated with winget upgrade.
Anyway, in an enterprise environment, it is highly recommended to use wishlist configuration...
Anyway, in an enterprise environment, it is highly recommended to use wishlist configuration...
This is not feasible in a corporate environment, as we have centrally managed applications (e.g. Office, SAP clients, printer tooling ...) and de-centrally managed applications (e.g. Development environments, business specific tools, ...). Central IT isn't truly aware of the de-central applications and can't add them to the whitelist / blacklist. Therefore, it is important that user specific pins are respected.
Leaving the user to choose is not always a good idea 😅 The thing is, I haven't checked yet how the pin feature works. So if a user pins an app, I don't know how WAU will behave in the system context 😑
13:00:05 - WAU uses External Lists from: C:\ProgramData\Winget-AutoUpdate-Configurator
That isn't a part of WAU, could it be you're running the fork (with an always older WAU): https://github.com/Weatherlights/Winget-AutoUpdate-Intune installed from Microsoft Store?
If so an implemented function like this would probably take a while before it reaches your machines (depending on that fork).
The function itself could be a nice addition to the functionality of WAU!
EDIT: But it must be dependent of an allowance to pin apps (PinList=Allowed) otherwise users can disrupt everything
This issue is stale because it has been open for 30 days with no activity.
Not stale.
This issue is stale because it has been open for 30 days with no activity.
Not stale.
This issue is stale because it has been open for 30 days with no activity.
Not stale.
This issue is stale because it has been open for 30 days with no activity.
Not stale.
This issue is stale because it has been open for 30 days with no activity.
Not stale.
This issue is stale because it has been open for 30 days with no activity.
Not stale.
+1
This issue is stale because it has been open for 30 days with no activity.
Not stale.
This issue is stale because it has been open for 30 days with no activity.
Not stale.
This issue is stale because it has been open for 30 days with no activity.
Not stale.