+ Post New Thread
Results 1 to 1 of 1
Windows Server 2008 Thread, Exchange 2010 - Useful Powershell Commands in Technical; Hi there, I've just started getting me head round using Exchange Powershell command so I thought I'd share some that ...
  1. #1
    bodminman's Avatar
    Join Date
    Apr 2007
    Sunny Suffolk
    Thank Post
    Thanked 232 Times in 123 Posts
    Blog Entries
    Rep Power

    Exchange 2010 - Useful Powershell Commands

    Hi there,

    I've just started getting me head round using Exchange Powershell command so I thought I'd share some that I thought useful.

    Please add more!

    After adding new users run these commands to update the address lists:
    Get-Globaladdresslist | update-Globaladdresslist

    Get-Addresslist | Update-Addresslist

    To restrict the number of recipients members of a database can send mail to:

    Get-Mailbox -Database "Database name" -ResultSize Unlimited |Set-Mailbox -RecipientLimits 5

    Creating a new mailbox database (new year groups):
    new-mailboxdatabase -Server '<EXCHANGE SERVER>' -Name '<DATABASE NAME>' -EdbFilePath 'E:\Exch2010-DBs\<DATABASE NAME>\<DATABASE NAME>.edb' -LogFolderPath 'E:\Exch2010-Logs\<DATABASE NAME>'

    Mounting the new database:

    Mount-Database -Identity "<DATABASE NAME>"

    Setting mailbox limits within a database:

    Set-MailboxDatabase -ProhibitSendReceiveQuota '45Mb' -ProhibitSendQuota '40Mb' -IssueWarningQuota '35Mb' -RetainDeletedItemsUntilBackup $true -Identity "<DATABASE NAME>"

    Set mailbox offline address book:

    Set-MailboxDatabase -OfflineAddressBook '\Default Offline Address Book' -Identity "<DATABASE NAME>"

    Create new global address list:

    New-GlobalAddressList -Name "<ADDRESS LIST NAME" -RecipientFilter {(MemberOfGroup -eq 'cn=<GROUP NAME>,OU=Exchange Groups,DC=XXX,DC=internal')}

    Update GAL:

    Update-GlobalAddressList -Identity "<ADDRESS LIST NAME>"

    Default GAL permission change:

    Add-ADPermission -Identity $dngal -User "<ADDRESS LIST NAME>" -AccessRights extendedright -ExtendedRights "open address list" -Deny:$True
    Last edited by bodminman; 10th November 2010 at 10:37 AM.

  2. 2 Thanks to bodminman:

    box_l (10th November 2010), frosty (10th November 2010)

+ Post New Thread

Similar Threads

  1. Exchange Powershell command help
    By bodminman in forum Windows Server 2008 R2
    Replies: 2
    Last Post: 28th September 2010, 07:42 PM
  2. Replies: 2
    Last Post: 30th July 2009, 03:36 PM
  3. Powershell Exchange 2007 help
    By maf_001 in forum Coding
    Replies: 2
    Last Post: 14th June 2009, 09:57 PM
  4. Exchange 2007 Powershell Help
    By ezzauk in forum Windows
    Replies: 0
    Last Post: 25th September 2008, 02:02 PM
  5. Replies: 0
    Last Post: 24th January 2008, 03:58 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts