07-16-2014 04:50 PM
Hello,
In the Setting up Exchange Server Archiving guide for EV11 there are examples for deploying Office Mail App to individual users, OUs and the Whole Exchange Organization.
What would the script look like to deploy Office Mail App to an AD security group?
Cheers
Cameron
Solved! Go to Solution.
07-17-2014 08:14 AM
i cant test right now but something like this could work. replace "group name" with the name of the security enabled distribution group and replace EV_server with the name of any EV server in your site:
Get-DistributionGroupMember “Group Name” | get-mailbox | foreach-Object {
New-App -mailbox $_.LegacyExchangeDN -Url `
("http://EV_server/EnterpriseVault/OfficeMailAppManifest.aspx?LegacyMbxDn=" +
$_.LegacyExchangeDN)
}
hope this gets you close enough
07-16-2014 07:49 PM
i suppose you'd have to use powershell to query the AD group for it's members and then pipe it to the get-mailbox
07-16-2014 08:24 PM
Thanks AndrewB. That is my thought as well.
Unfortunately I don't know PowerShell well enough to do so.
Cameron
07-17-2014 08:14 AM
i cant test right now but something like this could work. replace "group name" with the name of the security enabled distribution group and replace EV_server with the name of any EV server in your site:
Get-DistributionGroupMember “Group Name” | get-mailbox | foreach-Object {
New-App -mailbox $_.LegacyExchangeDN -Url `
("http://EV_server/EnterpriseVault/OfficeMailAppManifest.aspx?LegacyMbxDn=" +
$_.LegacyExchangeDN)
}
hope this gets you close enough
07-20-2014 03:45 PM
Thanks Andrew,
I will give it a go!