Export biggest mailbox users with attributes to csv!

This is how: Get-Mailbox -ResultSize Unlimited | Get-MailboxStatistics | Select DisplayName,servername,database,StorageLimitStatus, @{name="TotalItemSize (MB)";expression={[math]::Round((($_.TotalItemSize.Value.ToString()).Split("(")[1].Split(" ")[0]. Replace(",","")/1MB),2)}},@{name="TotalDeletedItemSize (MB)";expression={[math] ::Round((($_.TotalDeletedItemSize.Value.ToString()).Split("(")[1].Split(" ")[0]. Replace(",","")/1MB),2)}},ItemCount,DeletedItemCount | Sort "TotalItemSize (MB)"  -Descending | Export-CSV "C:dirAll Mailboxes_120814.csv" -NoTypeInformation Love it!continue reading →

Exchange 2010 – Purge Deleted Items before retention limit kicks in.

Get all users Deleted Items size: Get-MailBox | Get-MailboxStatistics | select DisplayName,TotalDeletedItemSize Get a specific users Deleted Items Size: Get-MailboxStatistics <alias> | select DisplayName,TotalDeletedItemSize Purge All Users Deleted Items: get-mailbox | Search-mailbox -SearchDumpsterOnly -DeleteContent Purge a specific users Deleted Items: Search-mailbox -identity <alias> -SearchDumpsterOnly -DeleteContent    Check Database white space…continue reading →

Lync and Exchange Web Services (EWS) and different DNS Domains- Exchange crawling e.g. for presence

Source: http://lyncuc.blogspot.fi/2013/01/lync-and-exchange-web-services-ews-and.html there is always confusion in how Lync is crawling Exchange Web Services (EWS). Generally it is necessary to understand how DNS must be implemented: Just remember, identify if you have DNS Split configuration, different internal and external DNS names and what are your SMTP and SIP Domains. There…continue reading →

Add SIP address to all users in certain OU

This situation may come true if you have Onpremises Exchange and Online tenant Lync. Then you need to add a SIP address with the same name as the user is in the Online tenant. And here's the script: $mailboxes = Get-Mailbox -OrganizationalUnit contoso.local/Users/someOU foreach ($mailbox in $mailboxes) {Set-Mailbox -Identity $mailbox…continue reading →