Hi,<\/p>\n
I’m currently trying to make a script that shows us for each exchange user how big their mailbox is. We will soon start a migration to another exchange server. It also shows me when they last logged in to thair accounts etc …<\/p>\n
I would like to include an extra column, showing me from what company the user is. It is realy giving me a headache.<\/p>\n
This is what I have so far:<\/p>\n
Get-MailboxDatabase | get-mailboxstatistics | sort-object -property totalitemsize -descending | select-object displayname, itemcount, @{ expression={$_.TotalItemSize.Value.ToKB()} } , lastloggedonuser, lastlogontime, lastlogofftime, servername, databasename | export-csv “c:/MailboxStats-sizes.csv”<\/p>\n
Thanks in advance!<\/p>","upvoteCount":3,"answerCount":14,"datePublished":"2017-12-18T14:17:53.000Z","author":{"@type":"Person","name":"mikelbz","url":"https://community.spiceworks.com/u/mikelbz"},"suggestedAnswer":[{"@type":"Answer","text":"
Hi,<\/p>\n
I’m currently trying to make a script that shows us for each exchange user how big their mailbox is. We will soon start a migration to another exchange server. It also shows me when they last logged in to thair accounts etc …<\/p>\n
I would like to include an extra column, showing me from what company the user is. It is realy giving me a headache.<\/p>\n
This is what I have so far:<\/p>\n
Get-MailboxDatabase | get-mailboxstatistics | sort-object -property totalitemsize -descending | select-object displayname, itemcount, @{ expression={$_.TotalItemSize.Value.ToKB()} } , lastloggedonuser, lastlogontime, lastlogofftime, servername, databasename | export-csv “c:/MailboxStats-sizes.csv”<\/p>\n
Thanks in advance!<\/p>","upvoteCount":3,"datePublished":"2017-12-18T14:17:53.000Z","url":"https://community.spiceworks.com/t/exchange-2010-script-help/624701/1","author":{"@type":"Person","name":"mikelbz","url":"https://community.spiceworks.com/u/mikelbz"}},{"@type":"Answer","text":"
Hello,<\/p>\n
this is a powershell question<\/p>\n
If you post code, please use the ‘Insert Code’ button. Please and thank you!<\/p>","upvoteCount":0,"datePublished":"2017-12-18T15:47:57.000Z","url":"https://community.spiceworks.com/t/exchange-2010-script-help/624701/2","author":{"@type":"Person","name":"Neally","url":"https://community.spiceworks.com/u/Neally"}},{"@type":"Answer","text":"
Where does it show you in Exchange from what company the user is?<\/p>","upvoteCount":0,"datePublished":"2017-12-18T15:59:21.000Z","url":"https://community.spiceworks.com/t/exchange-2010-script-help/624701/3","author":{"@type":"Person","name":"Neally","url":"https://community.spiceworks.com/u/Neally"}},{"@type":"Answer","text":"
What do you mean by ‘what company’ ? Generally, Exchange is for an organisation’s email (or a shared tennant in a hosted version but still one org) so the company is yours.<\/p>","upvoteCount":1,"datePublished":"2017-12-18T16:13:08.000Z","url":"https://community.spiceworks.com/t/exchange-2010-script-help/624701/4","author":{"@type":"Person","name":"DoctorDNS","url":"https://community.spiceworks.com/u/DoctorDNS"}},{"@type":"Answer","text":"
Hi, Thanks for the replies. I mean that u can add a company name to a user as a prototype. It is a get-user property. I now wat to add this information in a extra column so I can see which users belongs to which company<\/p>\n
We are a company that rents out mailaddresses. We have like 50 companies subscribed to our exchange service<\/p>","upvoteCount":0,"datePublished":"2017-12-18T16:20:03.000Z","url":"https://community.spiceworks.com/t/exchange-2010-script-help/624701/5","author":{"@type":"Person","name":"mikelbz","url":"https://community.spiceworks.com/u/mikelbz"}},{"@type":"Answer","text":"