Deploy Add-In to user in O365 using PowerShell

Created by Abderrahim Ibnou el kadi, Modified on Thu, 09 Jun 2022 at 08:52 AM by Abderrahim Ibnou el kadi

Synopsis:


This document is meant to be a workaround for deploying Add-In for clients that are experiencing issues with the default process of deploying the outlook plug-In.


Solution: 


Here are the steps to deploy an Add-in through PowerShell cmdlet following the steps below:


Deploy an add-in manifest


1-  Install the O365 Centralized Add-In Deployment Module for Windows PowerShell using the following command:
  •  Install-Module -Name O365CentralizedAddInDeployment
2- After installing O365 centralized Add-In you now need to open PowerShell Command prompt and run the following to import it
  • Import-Module -Name O365CentralizedAddInDeployment
3- Now we need to connect before we can use the Centralized Deployment cmdlets , to do so run the following cmdlet:
Important: Use your credentials for Microsoft 365 Admin or Global Admin
  • Connect-OrganizationAddInService
4- Now we need to download the Manifest following the Package type you subscribed to from the VircomPortal.com and specify the path for it as in the below cmdlet :
  • New-OrganizationAddIn -ManifestPath 'C:\Users\al\Downloads\SRC 365/Professional.xml' -Locale 'en-US'

Now if all goes fine you will get the following results (see Figure 1) then you can confirm that by login to Office365 Admin Center under
 Settings > Integrated Apps   (Figure 2).

Figure 1:

Figure 2:


Update an add-in


If you want to update the Add-In, and what I mean by Update is to move from Basic to BeginnerBusiness, Advanced, or Professional Add-In otherwise, like if there is a new version of the same manifest, you will need to remove the Add-In first then push the new manifest using the command line New-OrganizationAddIn  as show above (Step 4).


So to update the Add-In you will need to:

I assume that you already run the Commands above (Step1 to Step3)

  1. You will need to show details on the install Add-In so we can get the product ID, to do so run the following command: 

foreach($G in (Get-organizationAddIn)){Get-OrganizationAddIn -ProductId $G.ProductId | Format-List}

2. Copy the Product ID (Figure 4) then use it in the below command and provide also the path for the          new manifest  (Figure 3)      

Set-OrganizationAddIn -ProductId 9c6eafb3-e8de-461a-916e-3e119d237ccc -ManifestPath 'C:\Users\al\Downloads\SRC365\Basic.xml' -Locale 'en-US'


Figure 3:




Remove the Add-In


To remove an Add-In you will need first to :


  1. Run the cmdlet to get the details for the Add-In Run the cmdlet to get the details for the Add-In 


foreach($G in (Get-organizationAddIn)){Get-OrganizationAddIn -ProductId $G.ProductId | Format-List} 


2. Run the cmdlet to remove the specific Add-In


Remove-OrganizationAddIn -ProductId 6a75788e-1c6b-4e9b-b5db-5975a2072122


Figure 4: