microsoftgraph / powershell-intune-samples

This repository of PowerShell sample scripts show how to access Intune service resources. They demonstrate this by making HTTPS RESTful API requests to the Microsoft Graph API from PowerShell.
MIT License
1.35k stars 656 forks source link

How would someone go about using the Application_LOB_Add.ps1 Script to make it Update an MSI LOB instead #243

Open boivinx7 opened 1 year ago

boivinx7 commented 1 year ago

Ive tried a lot of stuff, but the functions are too unclear to me, i would have to re write the entire code to try to start to understand it. ive tried to go simple and just hide the #Write-Host "Creating application in Intune..." -ForegroundColor Yellow Like 714-716 section and just put the app ID that i want in Line 721 And from the output it seems all ok but the app itself never took the new MSI, so im not sure where it was uploaded, and that im not a fan of.

Ive found a lot of exemples for Win32, but this is an for an app that has almost weekly updates, and users just want it up to date. right now they have a Scheduled task manually installed on there PC. App needs admin rights to update, and has no auto update or even update check mechanism... (dumb but no choice) So my goal would be to have an azure automation that would run, if there is a new version, download it and then update it in the MSI LOB. since those auto update on the pc's without having to change the detection method, it makes it easy to manage. But finding or making the script is a pain. also would ultimately need to have App API and not Delegate or login since this will be automated. So anyway, if anyone has an idea. regards

ebashcobaltix commented 8 months ago

I have developed a solution for this including a UI, are you using for personal or company use?