Deployment of Winget-AutoUpdate via Intune - all devices have AllSigned as Execution Policy by Intune configuration #779
Replies: 2 comments 6 replies
-
I understand that security matters, but there might be a less ruthless method of securing PoSh scripting. That way every script either launched from netshare or downloaded from internet will still require local approval from AppLocer/AppControl solution. That way you will maintain the same level of control (if not better) over scripts as in current setup. With B control you wont leave that option to users. BR |
Beta Was this translation helpful? Give feedback.
-
Hi @AndrewDemski-ad-gmail-com ! When we run the winget-upgrade like this: As user, from an Intune remediation, it updates the "updates" log file like this: 28-11-2024 CHECK FOR UPDATE (User context)###################################### But then it seems like it stops.. Where as, if I write that command: Any idea why our Intune can't initiate it properly as the user? Thanks so much in advance! --Dan |
Beta Was this translation helpful? Give feedback.
-
Dear Romaitho & team
I am in the situation where we used to sign all scripts downloaded from:
https://github.com/Romanitho/Winget-AutoUpdate/archive/refs/heads/main.zip
and then deploy it using Winget-AutoUpdate-Install.ps1 file.
----EDITED AFTER POSTING!!!!----
The reason we do this is that all of our devices in our tenant have the ExecutionPolicy set to AllSigned as we don't allow PowerShell scripts to run without signature.
----EDITED AFTER POSTING!!!! FINISHED----
Now with the .msi installer, our devices can no longer install WAU as the powershell scripts in the .msi are not signed.
I am making this new discussion to ask you if there is a way we can do this, without using the .msi installer, so that we can sign the scripts?
I was thinking of moving forward with this method:
----PREPARATION----
Download it all here:
https://github.com/Romanitho/Winget-AutoUpdate/archive/refs/heads/main.zip
Sign each and every powershell script in this folder "Winget-AutoUpdate"
Place everything in a .zip folder.
Make an export of:
HKLM\SOFTWARE\Romanitho with the desired settings we have. (we installed it in sandbox first, where the script signatures isn't an issue, so that we can export this file.
Make an export of this scheduled task:
Winget-AutoUpdate-Notify
----PREPARATION FINISHED----
----ACTUAL DEPLOYMENT----
Unzip the .zip folder into /Program Files
Import the Romanitho registry.
Import the Winget-AutoUpdate-Notify scheduled task.
----ACTUAL DEPLOYMENT FINISHED----
After installation we call the winget-upgrade script via Intune remediation daily, to check for updates.
Would this work the same way as if we installed it with the .msi file?
Images for discussion:
Beta Was this translation helpful? Give feedback.
All reactions