Microsoft
Software
Hardware
Network
Question : Exchange 2007 Powershell - Set-MailboxDatabase add Journal Recipient that is a Distribution Group
Good day, folks.
I'm working on a script to modify the Journal Recipient of dozens of Exchange 2007 storage groups in our org. Naturally, I would like to use Powershell to complete this task with the following two-liner with a variable:
$add = Get-DistributionGroup "<DL-ID>"
$add | % { set-MailboxDatabase -Identity <DB-ID> -JournalRecipient $_ }
OR...
$add = get-recipient "<DL-ID>"
$add | % { get- mailboxdatabase -Identity <DB-ID> | set-MailboxDatabase -JournalRecipient $_ }
Since our org is using Universal Distribution Groups (with multiple recipients) to Journal to, the above fail citing the following:
Set-MailboxDatabase : Cannot bind parameter 'JournalRecipient'. Cannot convert "<DL-ID>" to "Microsoft.Exchange.Config
uration.Ta
sks.Recipi
entIdParam
eter".
At line:1 char:95
+ $add | % { set-MailboxDatabase -Identity DB-ID -JournalRecipient <<<< $_ -whatif -verbose }
I'm struggling with the fact that the cmdlet is expecting a recipient but I need to pass a DL.
Any thoughts or tips on this?
Many thanks in advance for your comments.
Cheers,
Matt
Answer : Exchange 2007 Powershell - Set-MailboxDatabase add Journal Recipient that is a Distribution Group
why not simply use
set-MailboxDatabase DB-ID -JournalRecipient DL-ID ?
Random Solutions
JSP file can't read Bean on tomcat linux system
create a for each loop for javascript in c#
on BB (running BES), duplicate contacts and calendar - but not in Outlook - happened after running Blackberry Transporter and upgrade to Exchange 2010
Simple jquery ajax search
AD Group - can it have different set of users in different SQL Server boxes
Remote SMTP Server Returned: 550
SQL Express not accepting outside connections
Server 2008 R2 - Can't connect to a remote app through rdweb
Function Undefined Error in Wordpress
cricket's towers