Automatic run of Winget-Upgrade.ps1 as remediations in Intune #759
Replies: 2 comments 4 replies
-
Hej @dlundahl91, I could suspect that we are talking about VScode and similar apps :) If I understand you right, the problem is caused by lack of diversification* of excluded apps list based on execution context to avoid situation in which any given setup launched on behalf of current user won't trigger UAC prompt? *diversification
Some setups can work in user and machine contexts, some have a logic which switches the INSTALLDIR from program files to appdata of current user on the flight. You may need to suppress UAC prompts entirely to trigger such behavior. These registry settings work in Windows 10+ and land in Further details: |
Beta Was this translation helpful? Give feedback.
-
As much as I wish for WAU to provide solutions to as many daily problems of IT world, some things - such as compliance/regulations/internal processes and procedures - are out of scope. I that is the solution for UAC prompts during WAU upgrade cycle, then WAU does not need to be modified IMHO. |
Beta Was this translation helpful? Give feedback.
-
Hey experts!
Still loving this product, you are absolute superstars in my eyes. Thanks so much!
In our company we run the Winget-Upgrade.ps1 file with an Intune as SYSTEM to update all of our packages. (we only have system packages, and we have been avoiding user packages as much as possible, as we had troubles getting the user packages updated.)
My issue, and reason for creating this discussion, is that we might no longer be able to avoid user packages, as our development team needs a piece of software, which is only available as user.
If we run the Winget-Upgrade.ps1 as the USER, initiated via Intune(or locally on the PC via powershell) it comes with a lot of errors, regarding not having access to the Logs folder.
We can make sure that access is granted via our remediation, so that isn't an issue.
However, when the script is launched as user, it also tries to upgrade all of the system packages, and that causes a lot of UACs for our users, that they cannot log into/approve.
Is there a way to run the Winget-Upgrade.ps1 file as user, and automatically only install user packages - and avoid/skip system packages?
Thanks a lot in advance!!
Br
Beta Was this translation helpful? Give feedback.
All reactions