Link to home
Start Free TrialLog in
Avatar of ENTPF
ENTPF

asked on

exchange 2007/2010 mailbox sizes

Is there a way in powershell I can use an input text list of users/aliases to feed in and output mailbox sizes and item counts to a CSV file?
Avatar of Akhater
Akhater
Flag of Lebanon image

import-csv c:\users.csv | get-mailboxstatistics | select-object displayname,itemcount,totalitemsize | export-csv c:\mailboxstat.csv
Avatar of ENTPF
ENTPF

ASKER

getting nothing in the output file.  
what do you have in your input file ?
what is the output of import-csv c:\users.csv alone
Avatar of ENTPF

ASKER

just usernames in the input file.  
output file does not show anything even there is no command in between import and export.
import-csv c:\users.csv | get-mailboxstatistics

try this  alone any output?

Avatar of ENTPF

ASKER

Get-MailboxStatistics : The input object cannot be bound to any parameters for
the command either because the command does not take pipeline input or the inpu
t and its properties do not match any of the parameters that take pipeline inpu
t.
At line:1 char:74
ASKER CERTIFIED SOLUTION
Avatar of Akhater
Akhater
Flag of Lebanon 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