hawika
Goto Top

Powershell Script, um die Sprache einer Mailbox zu setzen

During a move mailbox scenario in a mid-large international company useres told that they got Non Deleivery Reports (NDRs) in German language. Crazy, because all servers are set up with English OS and English Exchange Software - no German at all!
So we decided to set all mailboxes to have US-EN as default language for NDRs. That resolved our problem!

So I did a short powershell script looking for all Exchange 2010 server mailbox stores (we had 4 maibox servers with 20 databases in a DAG).
After doing that, I was able to set the language of all mailboxes.

Getting all Exchange 2010 servers
Get-mailboxserver   | where {$_.admindisplayversion -like "Version 14*"}  

Looping through all Exchange 2010 server mailboxes

Get-Mailbox -server $server -resultsize unlimited

Setting new values

SET-mailbox -languages "en-US"  

Full code

$servers =   Get-mailboxserver   | where {$_.admindisplayversion -like "Version 14*"}   
foreach($server in $servers) 
{
Get-Mailbox -server $server -resultsize unlimited | SET-mailbox -languages "en-US"  
}

Content-ID: 157471

Url: https://administrator.de/knowledge/powershell-script-um-die-sprache-einer-mailbox-zu-setzen-157471.html

Ausgedruckt am: 23.12.2024 um 16:12 Uhr