Forum Discussion
rafaelruales
Aug 03, 2022Copper Contributor
Company portal install/reinstall via Powershell?
Hi,
Is it possible to "click" the "install" button via Powershell?
I cannot find anything that says if it's possible to interact with the company portal app via powershell.
thanks!
- somesh_pathakIron Contributor
Hi rafaelruales , You can use Graph to get the app id and make calls to interact or trigger installation.
- rafaelrualesCopper Contributor
thanks somesh_pathak , do you know by chance what those endpoints are?
- Mr_HelaasSteel Contributor
Hi rafaelruales,
Why should you use PowerShell to click on the install button? You can assign a group to the app as required and the app will be installed on the device.
Kind regards,
Rene
- rafaelrualesCopper ContributorYou are correct Mr_Helaas, that's they way we currently deploy apps. But of course, because it's MicroSucks, it sometimes fails to push the app.
If this worked properly, I wouldn't have to post this question 🙂- somesh_pathakIron Contributor
Hi rafaelruales , you can try to use Invoke-IntuneWin32AppRedeploy or https://graph.microsoft.com/deviceAppManagement/mobileApps/{id}/ for graph.
Regards,
Somesh