Exchange powershell help
ive got command runs fine.
(get-mailbox -resultsize unlimited) | select-object name,@{n="primary size(mb)";e={(get-mailboxstatistics $_).totalitemsize.value.tomb()}},@{n="archive size(mb)";e={(get-mailboxstatistics -archive $_).totalitemsize.value.tomb()}} |export-csv c:\mailboxsize.csv
i want add primary , archive databases in new columns. hadded following end archive database dosent work. command hangs
,@{n="archive database";e=(get-mailboxstatistics -archive databasename)
so in
(get-mailbox -resultsize unlimited) | select-object name,@{n="primary size(mb)";e={(get-mailboxstatistics $_).totalitemsize.value.tomb()}},@{n="archive size(mb)";e={(get-mailboxstatistics -archive $_).totalitemsize.value.tomb()}},@{n="archive database";e=(get-mailboxstatistics -archive databasename) |export-csv c:\mailboxsize.csv
any ideas how database name added?
- edited by gilbert frog wednesday, april 08, 2015 2:09 pm
Comments
Post a Comment