Deploying the Enterprise Vault Office Mail App with external access using organization unit.

book

Article ID: 100038793

calendar_today

Updated On:

Description

Description

The following example PowerShell script shows how to deploy the Enterprise Vault (EV) Office Mail App with external access using organization unit.
Note: Login to the Exchange server using an account that is assigned the management role User Options. By default, members of the Organization Management role group are assigned this role. 
 
Power Shell script:

function EVDeploy([string]$evserver, [string]$ou) {
Get-Mailbox -OrganizationalUnit $ou |
ForEach-Object {
If (New-App -mailbox $_.LegacyExchangeDN -ErrorAction:Ignore -Url `
("http://" + $evserver +
"/EnterpriseVault/OfficeMailAppManifest.aspx?LegacyMbxDn=" +
$_.LegacyExchangeDN + "&BaseURL=https://external_access_server/EnterpriseVault")) {
Write-host ("Deployed to: " + $_.DisplayName);
} Else {
If (Get-App -mailbox $_.LegacyExchangeDN `
-Identity 0cc6d075-e610-4b8a-90c6-1460e6d4d710 `
-ErrorAction:Ignore) {
Write-host ("Already deployed to: " + $_.DisplayName);
} Else {
Write-host ("Could not deploy to: " + $_.DisplayName);
};
};
};
};
EVDeploy "EV_server" "Org_unit"


EV_server is the name of any Enterprise Vault server in the site. This EV server is not necessarily the one that is used to load the Office Mail App. The EV server that is used to load the Office Mail App is the server where the archive for the specified mailbox is located. The name of the correct EV server for the specified mailbox is returned within the manifest file.
External_access_server is the name of the server that provides external access
Org_unit is the organizational unit that contains the users
The "-Identity" GUID identifies the Enterprise Vault Office Mail App, and does not change.

Issue/Introduction

Deploying the Enterprise Vault Office Mail App with external access using organization unit.