Forum Discussion
Mihes1735
Mar 20, 2024Copper Contributor
Is there a way to imediatly install an application to an enroled VM through Intune?
To set a little bit of context We are testing if the application installs on VM that was automatically created by us and reporting the successful installation of the app in a central DB. All the ste...
Mihes1735
Mar 21, 2024Copper Contributor
The app is already exported to Intune as an intuwin file. I'm not asking about how to export an application. I'm asking how to trigger the installation of a certain app, known by it's Id and get a notification when the app was installed. For us would be more convenient to do it like in case of winget: winget install <the_package_id>. If we can achive the command by a power shell script is even better.
SebastiaanSmits
Mar 21, 2024Iron Contributor
Hi I showed you that (at least a method) by assigning the app to a group (dynamic or static) see the first link and read it carefully, you can do this with Powershell, there are no direct cmdlets but use the Rest Api method as described in the link, you can further script assignment to groups also very easy..
- SebastiaanSmitsMar 21, 2024Iron ContributorAnd point 2 is for getting the installation confirmation, is limited but is no direct easy method, did you read my comment at all ? 🙂
- Mihes1735Mar 21, 2024Copper ContributorYes I read your comments and i know that we can use the Graph Api methods to monitor if the installation was successful but from our investigation we found thet there is an ammount of time that can be even hours, between assignning an app to an group, forcing a refresh on the target VM and the installation itself.
My question is if will do a force refresh as it is explained here: https://cloudinfra.net/how-to-force-intune-sync-using-powershell/ does this installs the application imediatly? Or just sync's the metadata of the app's that has to be installed on the target VM and than the target VM will ask for the app installation itself? Why i'm asking this is because we are monitoring the process that does the installation and I have to know when the installation starts and when it finishes on the target VM.