• Home
  • About
    • Disclaimer
  • Archives
  • Tools

How to create e-mail address policy based on active directory group membership.

Jan02
2018
Written by david

I use this command to create a e-mail address policy based on a group membership use the following command:

New-EmailAddressPolicy "" -RecipientFilter {((MemberOfGroup -eq "GroupPath"))} -EnabledPrimarySMTPAddressTemplate ‘’

PolicyName – Policy name.
GroupPath – Distinguished name of group in Active Directory.
Emailtemplate – Primary email address template e.g. SMTP:%g@corpdomain.com

Use this link for E-mail address templates: Email address policies

Example:

new-EmailAddressPolicy "Email-Policy-Name" -RecipientFilter {((MemberOfGroup -eq "CN=GroupName,OU=OU-Name,OU=Users,DC=Corp,DC=local") -and (RecipientType -eq 'UserMailbox'))} -EnabledPrimarySMTPAddressTemplate 'SMTP:%g@corpdomain.com'
VN:F [1.9.20_1166]
please wait...
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)
Posted in 2010, Exchange - Tagged 2010, EMS, exchange
SHARE THIS Twitter Facebook Delicious StumbleUpon E-mail
Similar posts
  • Powershell: How to set “Out of ... — Here is a script for setting an Out of the office (OOO) m...
  • Export to CSV all your Exchange 2010-... — This Powershell command will export all SMTP Email addres...
  • Exchange 2010: View free (White) spac... — If you like to see the available space on you’r dat...
  • Renew/Install SSL certificate on Exc... — I found a great step by step guide written by Randy Chapm...
  • Exchange Server and Update Rollups Bu... — The following link is the Microsoft Wiki page that lists ...
« Fortigate – useful log related cli commands I use.
» Fortios 5.6 – Enable intra-vap-privacy or prevent Intra-SSID traffic

Categories

  • Command Line (11)
  • Exchange (8)
    • 2007 (4)
    • 2010 (5)
  • Fortigate (10)
  • FreeNAS (2)
  • HmailServer (1)
  • How To: (8)
  • MS SQL 2008 (4)
  • Networking (4)
  • Open Source (1)
  • PowerShell (2)
  • Recovery (1)
  • SBS (8)
    • SBS 2008 (6)
    • SBS 2011 (3)
  • Terminal Server (2)
  • Veeam (2)
  • VMware (6)
  • Windows (18)

Links

  • חי הדפסות – דפוס משי, חולון
  • שלישיה – זה לא מה שחשבתם

Archives

  • March 2018
  • January 2018
  • September 2015
  • January 2015
  • August 2014
  • May 2014
  • December 2013
  • January 2013
  • October 2012
  • September 2012
  • July 2012
  • June 2012
  • May 2012
  • January 2012
  • December 2011
  • November 2011
  • October 2011
  • September 2011
  • July 2011
  • June 2011
  • May 2011
  • April 2011
Site Meter

EvoLve theme by Theme4Press  •  Powered by WordPress How to do.....IT