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?
import-csv c:\users.csv | get-mailboxstatistics | select-object displayname,itemcount,tota litemsize | export-csv c:\mailboxstat.csv
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
what is the output of import-csv c:\users.csv alone
ASKER
just usernames in the input file.
output file does not show anything even there is no command in between import and export.
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?
try this alone any output?
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
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.