Friday, July 20, 2007

Exchange 2007 Get-SystemMessage

I have seen issues on some web forums and the newsgroups where someone is trying to use the Exchange 2007 Get-SystemMessage cmdlet to retrieve the value of a system message. Here is an example:

Get-SystemMessage 'en\internal\5.7.1'

One thing I learned early on is that this will NOT work unless you have created a message already using the New-SystemMessage cmdlet. By default, this will not list the built-in or default messages.

If you want to look at the original message, it is a bit convoluted. Here is the syntax:
Get-SystemMessage -original ? { $_.identity -eq 'en\internal\5.7.1' }

Labels:

1 Comments:

At 5:59 AM, Blogger Unknown said...

Jim

You missed the pipeline before the ? in the Get-SystemMessage query.

Charlie

 

Post a Comment

<< Home