• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 375
  • Last Modified:

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

hello,

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:

toto1@mail.com
toto10@mail.com
toto100@mail.com
toto1000@mail.com
toto10000@mail.com
.....

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
0
cawasaki
Asked:
cawasaki
1 Solution
 
SubsunCommented:
Try..
GC C:\user.txt | %{Set-Mailbox $_ -IssueWarningQuota 188743680 -ProhibitSendQuota 199229440 -ProhibitSendReceiveQuota 209715200 -UseDatabaseQuotaDefaults $false}

Open in new window

0
 
cawasakiAuthor Commented:
thank you :)
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now