Link to home
Start Free TrialLog in
Avatar of bsharath
bsharathFlag for India

asked on

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
ASKER CERTIFIED SOLUTION
Avatar of Chris Dent
Chris Dent
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of bsharath

ASKER

Hi Chris

I get this

Get-Mailbox : Cannot bind parameter 'Filter' to the target. Exception setting "Filter": "Unable to cast object of type
'System.Boolean' to type 'System.String'."
At line:1 char:42
+ Get-Mailbox -ResultSize Unlimited -Filter <<<<  { UseDatabaseQuotaDefaults -eq $False } `
    + CategoryInfo          : WriteError: (:) [Get-Mailbox], ParameterBindingException
    + FullyQualifiedErrorId : ParameterBindingFailed,Microsoft.Exchange.Management.RecipientTasks.GetMailbox

I can't reproduce that error message. Which service pack do you have installed? Testing is based on PowerShell 1 and 2 with Exchange 2007 Service Pack 1 and 2 tools.

Chris
Thanks Chris i was running it on the Quest prompt
Now it works on exchange