Applying MRM Policy via Command Shell
I am looking to apply a MRM Policy I created to my end users and wanted to know if I could do this via the command shell for certain users? I am not looking to do this for users in a certain OU or for the entire user base (at least not in one fell swoop). My intention is to roll out this policy in phases - say for users with last names beginning in A through E and so on. Anyone know if I can grab specific mailboxes this way? Any help would be appreciated - Abacus1919.
August 19th, 2011 2:00pm

http://technet.microsoft.com/en-us/library/bb397218(v=exchg.80).aspxGulab | MCITP: Exchange 2010-2007 | Lync Server 2010 | Windows Server 2008 | Skype: Exchange.Ranger | Blog: www.ExchangeRanger.Blogspot.com
Free Windows Admin Tool Kit Click here and download it now
August 19th, 2011 3:49pm

Hi abacus1919, What is your meaning of “say for users with last names beginning in A through E and so on”, could you explain in detail? If you mean apply policy to mailbox (which user’s lastname begin with letter A and have letter E in it), you can use this to achieve the goal: Get-Mailbox -resultsize unlimited -filter "RecipientType -eq 'userMailbox'"| foreach{ $user = Get-user $_.distinguishedName $identity=$_.identity $lastname=$user.lastName if($lastname -like "A*E*") { set-mailbox -identity $identity -ManagedFolderMailboxPolicy "Policy Name" } } Thanks, Evan
August 23rd, 2011 1:20am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics