Question : Powershell script to find all users who is not set to default storage quota. Query all users in an OU and below them.

Hi,

Powershell script to find all users who is not set to default storage quota. Query all users in an OU and below them.
all Ou's below the root and get just user names to a file who have a different size set with Storage name and size set.

Regards
Sharath

Answer : Powershell script to find all users who is not set to default storage quota. Query all users in an OU and below them.


Exchange Management Shell, then the snippet below will work.

You need it dumping to a file? This version does.

Chris
1:
2:
3:
4:
5:
Get-Mailbox -ResultSize Unlimited -Filter { UseDatabaseQuotaDefaults -eq $False } `
    -OrganizationalUnit "OU=somewhere,DC=domain,DC=com" |
  Select-Object Name, Database, UseDatabaseQuotaDefaults, IssueWarningQuota, `
    ProhibitSendQuota, ProhibitSendReceiveQuota |
  Export-CSV "SomeFile.csv"
Random Solutions  
 
programming4us programming4us