# Installer for Coro Add-In for O365 # Auth: david.biers@coro.net # Desc: This powershell script installs and imports the correct module into Powershell # then connects (with 2FA if necessary), installs the add-in for "Coro" and then # will assign it to the entire organization. # Install the module for setting up the add-in Install-Module -Name O365CentralizedAddInDeployment Import-Module -Name O365CentralizedAddInDeployment # Connect to Org Addin Connect-OrganizationAddInService # Upload Add-in from Office Store New-OrganizationAddIn -AssetId 'WA200003312' -Locale 'en-US' -ContentMarket 'en-US' # Get Product ID from installed Add-In $CoroProdID = Get-OrganizationAddIn | Where {$_.DisplayName -eq "Coro"} | Select-Object -ExpandProperty ProductId # Assign to whole org Set-OrganizationAddInAssignments -ProductId "$CoroProdID" -AssignToEveryone $true