locked
Exchange 2010 Mailbox Storage Quotas Limits by AD Secrurity Group RRS feed

  • Question

  • Im trying  to set Mailbox Quota limits by secrurity groups with in AD.

    Can any one offer any advice?

    Ive tried using this:

    get-ADgroup"Exchange Quota 5GB"|get-ADGroupmember|set-mailbox-IssueWarningQuota4864000000  -ProhibitSendQuota5017600000-ProhibitSendReceiveQuota5242880000-UseDatabaseQuotaDefaults$false

    but it doesnt allow piping?

    Any help please

    Friday, August 30, 2013 2:53 PM

Answers

  • Try this:

    Get-ADGroupMember "Exchange Quota 5GB" | select @{l="identity";e={$_.distinguishedname}} | Get-user
    | set-mailbox -IssueWarningQuota 4864000000  -ProhibitSendQuota 5017600000 -ProhibitSendReceiveQuota 5242880000 -UseDatabaseQuotaDefaults $false



    G. Samuel Hays, MCT, MCSE 2012, MCITP: Enterprise Admin

    Blog:gsamuelhays.blogspot.com

    twitter:twitter.com/gsamuelhays

    • Marked as answer by biziee Saturday, August 31, 2013 1:53 PM
    Friday, August 30, 2013 3:58 PM
  • Im trying  to set Mailbox Quota limits by secrurity groups with in AD.

    Can any one offer any advice?

    Ive tried using this:

    get-ADgroup"Exchange Quota 5GB"|get-ADGroupmember|set-mailbox-IssueWarningQuota4864000000  -ProhibitSendQuota5017600000-ProhibitSendReceiveQuota5242880000-UseDatabaseQuotaDefaults$false

    but it doesnt allow piping?

    Any help please

    Hello,

    Use this script :

    Import-Module activedirectory
    
    $dlmembers=Get-ADGroupMember "Exchane Quota 5GB"
    
    foreach($user in $dlmembers)
    {
    
    Get-mailbox -identity $user.name |set-mailbox -IssueWarningQuota 486400000 -ProhibitSendQuota 5017600000 -ProhibitSendReceiveQuota 5242880000 -UseDatabaseQuotaDefaults:$false
    
    }

    G.Samuel's code is also good and working .

    So you have two choice to choose ....



    If you found my post helpful, please give it a Helpful vote. If it answered your question, remember to mark it as an Answer. ---------- MCITP - Exchange 2010 | MCITP - Windows Server 2008 R2

    • Marked as answer by Yan Li_ Sunday, September 1, 2013 12:54 PM
    Saturday, August 31, 2013 2:19 PM

All replies

  • Try this:

    Get-ADGroupMember "Exchange Quota 5GB" | select @{l="identity";e={$_.distinguishedname}} | Get-user
    | set-mailbox -IssueWarningQuota 4864000000  -ProhibitSendQuota 5017600000 -ProhibitSendReceiveQuota 5242880000 -UseDatabaseQuotaDefaults $false



    G. Samuel Hays, MCT, MCSE 2012, MCITP: Enterprise Admin

    Blog:gsamuelhays.blogspot.com

    twitter:twitter.com/gsamuelhays

    • Marked as answer by biziee Saturday, August 31, 2013 1:53 PM
    Friday, August 30, 2013 3:58 PM
  • Im trying  to set Mailbox Quota limits by secrurity groups with in AD.

    Can any one offer any advice?

    Ive tried using this:

    get-ADgroup"Exchange Quota 5GB"|get-ADGroupmember|set-mailbox-IssueWarningQuota4864000000  -ProhibitSendQuota5017600000-ProhibitSendReceiveQuota5242880000-UseDatabaseQuotaDefaults$false

    but it doesnt allow piping?

    Any help please

    Hello,

    Use this script :

    Import-Module activedirectory
    
    $dlmembers=Get-ADGroupMember "Exchane Quota 5GB"
    
    foreach($user in $dlmembers)
    {
    
    Get-mailbox -identity $user.name |set-mailbox -IssueWarningQuota 486400000 -ProhibitSendQuota 5017600000 -ProhibitSendReceiveQuota 5242880000 -UseDatabaseQuotaDefaults:$false
    
    }

    G.Samuel's code is also good and working .

    So you have two choice to choose ....



    If you found my post helpful, please give it a Helpful vote. If it answered your question, remember to mark it as an Answer. ---------- MCITP - Exchange 2010 | MCITP - Windows Server 2008 R2

    • Marked as answer by Yan Li_ Sunday, September 1, 2013 12:54 PM
    Saturday, August 31, 2013 2:19 PM