I am trying to locate a cmdlet in Exchange Management Shell 2007 that will allow me to change the receive message size limit for all distribution groups that contain a particular keyword. For example, I don't want to change the limit for all distribution groups. I only want to change distribution groups that contain the word "Office" in their name:
Is there an easy way to do this without having to manully update each DG? I know I can use the Set-DistributionGroup Indentity "DG Name" -MaxReceiveSize 500KB command on each DG. I'm just looking for a way to automate it using a keyword in the name of the DG.