I want to export csv for all users in office 365 with their dumpster size above 50GB. i have exchange on premises and exchange online, i want to export for exchange online. plz guide me with the syntax, the below syntax works for all users but i want to export the report for dumpster size above 50GB.<\/p>\n
with below syntax i am not able to import properly into csv, usernames are not being imported . i tried below<\/p>\n
script1.ps1 | export-csv c:\\mydumster.csv -notypeinformation
\nscript1.ps1 | out-file c:\\mydumster.csv<\/p>\n
$AllMailboxes = Get-Mailbox -ResultSize unlimited
\nForEach ($Mailbox in $AllMailboxes){
\nWrite-Host “Dumpster size for $Mailbox” -ForegroundColor Green
\nGet-MailboxFolderStatistics -Identity $mailbox.alias -FolderScope recoverableitems | select Name,FolderAndSubfolderSize,ItemsInFolderAndSubfolders
\n}<\/p>","upvoteCount":5,"answerCount":6,"datePublished":"2018-05-07T14:37:42.000Z","author":{"@type":"Person","name":"rogerroger3","url":"https://community.spiceworks.com/u/rogerroger3"},"acceptedAnswer":{"@type":"Answer","text":"
maybe something like so<\/p>\n
Get-MailboxFolderStatistics $MailBoxName -FolderScope recoverableitems |\nselect folderandsubfoldersize |\nwhere folderandsubfoldersize -gt 50GB\n<\/code><\/pre>","upvoteCount":0,"datePublished":"2018-05-08T18:40:34.000Z","url":"https://community.spiceworks.com/t/syntax/650140/5","author":{"@type":"Person","name":"Neally","url":"https://community.spiceworks.com/u/Neally"}},"suggestedAnswer":[{"@type":"Answer","text":"I want to export csv for all users in office 365 with their dumpster size above 50GB. i have exchange on premises and exchange online, i want to export for exchange online. plz guide me with the syntax, the below syntax works for all users but i want to export the report for dumpster size above 50GB.<\/p>\n
with below syntax i am not able to import properly into csv, usernames are not being imported . i tried below<\/p>\n
script1.ps1 | export-csv c:\\mydumster.csv -notypeinformation
\nscript1.ps1 | out-file c:\\mydumster.csv<\/p>\n
$AllMailboxes = Get-Mailbox -ResultSize unlimited
\nForEach ($Mailbox in $AllMailboxes){
\nWrite-Host “Dumpster size for $Mailbox” -ForegroundColor Green
\nGet-MailboxFolderStatistics -Identity $mailbox.alias -FolderScope recoverableitems | select Name,FolderAndSubfolderSize,ItemsInFolderAndSubfolders
\n}<\/p>","upvoteCount":5,"datePublished":"2018-05-07T14:37:42.000Z","url":"https://community.spiceworks.com/t/syntax/650140/1","author":{"@type":"Person","name":"rogerroger3","url":"https://community.spiceworks.com/u/rogerroger3"}},{"@type":"Answer","text":"
hi experts help required on this<\/p>\n
i want to pull report for all the users having dumpster size above 50GB<\/p>","upvoteCount":0,"datePublished":"2018-05-08T16:49:46.000Z","url":"https://community.spiceworks.com/t/syntax/650140/2","author":{"@type":"Person","name":"rogerroger3","url":"https://community.spiceworks.com/u/rogerroger3"}},{"@type":"Answer","text":"
Since this is really a PowerShell question - I’ll add that group to this post!<\/p>","upvoteCount":0,"datePublished":"2018-05-08T18:20:21.000Z","url":"https://community.spiceworks.com/t/syntax/650140/3","author":{"@type":"Person","name":"DoctorDNS","url":"https://community.spiceworks.com/u/DoctorDNS"}},{"@type":"Answer","text":"
Roger, If you post code, please use the ‘Insert Code’ button. Please and thank you!<\/p>