Exporting Exchange UM Name Greetings and Out Of Office Greetings

In a recent blog post, I discussed how to export custom greetings in Exchange UM. The project team working on my Firms voicemail project asked if I could also export the Users Name recording and Out of Office Greeting.

The Out of Office Greeting was easy, it used the same EWS-FAI module as before. I used a for loop to export all the greeting into a folder for all users.

The script is below

}

$cred = Get-Credential

$MailboxName = Get-Mailbox -ResultSize Unlimited| Select-object -ExpandProperty primarysmtpaddress | %{[string] $x = $_ ; $x}

foreach($M in $MailboxName) {

$Item = Get-FAIItem -MailboxName $M -ConfigItemName Um.CustomGreetings.Oofl -Folder root -ReturnConfigObject -Credentials $cred

[System.IO.File]::WriteAllBytes(("d:\umof" + $M + ".wav"),$Item.BinaryData)

}

Exporting the Named greeting proved to be a bit more challenging. You cannot use EWS-FAI to export it. So I got my google on and found another method to export the name greetings. I found a script someone else had used and I modified it so it used a for-loop to export multiple greetings.

The only format the named greeting supports is .wma, so keep that in mind when if  you need to import this into a new voicemail system, you might have to convert the file to .wav.

foreach($M in $MailboxName) {

Export-RecipientDataProperty -Identity $M  -SpokenName | foreach-object { Add-Content -Value $_.FileData -Path "d:\umname$M.wma" -Encoding Byte }

}

I figured I would write a quick post about this as others might find this useful and hopefully it will save some time and end users time when converting from Exchange UM to a new voicemail system.

TBJ Consulting

TBJ Consulting