header1   header
header
header Register : : Login header
header
connector   connector
menuleft menuright
submenu   submenu
left
Group Membershipt Check against multiple groups/ use OR of IF
Last Post 29 Dec 2009 12:16 PM by rajackson. 0 Replies.
Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
rajacksonUser is Offline
New Member
New Member
Posts:2
Avatar

--
29 Dec 2009 12:16 PM
    I'm using AD groups to manage most of my Exchange mailbox properties. I have serveral managed mailbox folder policies that need to get applied to user mailboxes based on what AD group they are a member of. For Example, if I have Mailbox Policies A-D, I have a corresponding AD Group A-D.

    I'd like to write a powershell script that would filter mailboxes based on the MemberOfGroup attribute, and if the user is a member of AD Group A, it would set mailbox policy A, if the user was a member of AD Group B it would set mailbox policy B, and if the user was not a member of group A,B,C, or D it would set mailbox policy E.

    I don't know how to use IF or OR operators in a PowerShell script on my Exchange server. Does anyone have anyexperience with this?

    Thanks.
    You are not authorized to post a reply.


    Active Forums 4.3
    right
    footer   footer
    footer Sponsored by Quest Software • SAPIEN Technologies • Compellent • Microsoft Windows Server 2008 R2 footer
    footer   footer