POWERSHELL script to change exchange 2007 mailbox quota from a file with users list

Posted on 2014-08-27
Last Modified: 2014-08-27

i need to change the mailbox quota for 200 users. this user have actually this quota:

IssueWarningQuota  80 MB

ProhibitSendQuota 95 MB

ProhibitSendReceiveQuota 100 MB

I NEED a script to get from a file a list of users and modify this quota.
the file i have is like this:

i need to modify the mailbox quota for this mailbox like this:

IssueWarningQuota  180 MB

ProhibitSendQuota 190 MB

ProhibitSendReceiveQuota 200 MB

thank you for help
Question by:cawasaki
    LVL 40

    Accepted Solution

    GC C:\user.txt | %{Set-Mailbox $_ -IssueWarningQuota 188743680 -ProhibitSendQuota 199229440 -ProhibitSendReceiveQuota 209715200 -UseDatabaseQuotaDefaults $false}

    Open in new window


    Author Closing Comment

    thank you :)

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Create and license users in Office 365 in bulk based on a CSV file. A step-by-step guide with PowerShell script examples.
    ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
    In this video we show how to create an email address policy in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.:  First we need to log into the Exchange Admin Center. Navigate to the Mail Flow…
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    12 Experts available now in Live!

    Get 1:1 Help Now