User Profile
AlexMacedo
Copper Contributor
Joined 4 years ago
User Widgets
Recent Discussions
Re: exchange online: decommission email accounts
Hi, Seems like you have 2 questions on this post. 1) NDR messages for people who left the organization. Do you have a business require for it? Because if not, if someone is trying to send a message to an account that no longer exists, they will get a NDR message. If you have to address it, you have many ways to do it. Like create a generic account and including the aliases for those people who left. Risk is getting to many junk on it. Take a look at this post: https://techcommunity.microsoft.com/t5/exchange-team-blog/how-to-deal-with-users-leaving-the-organization/ba-p/606759 2) Managing licenses. Some posts. https://learn.microsoft.com/en-us/microsoft-365/admin/manage/assign-licenses-to-users?view=o365-worldwide Hope that helps.1.8KViews0likes0CommentsRe: Alert for recoverable deleted items
Hi Swapnil, You can have a weekly script checking each mailbox recoverable items size. Something like it: $AllUsers = Get-Mailbox -RecipientTypeDetails UserMailbox -ResultSize Unlimited | Select-Object PrimarySMTPAddress $a = 0 foreach ($Mailbox in $AllUsers) { Get-EXOMailboxFolderStatistics -Identity $Mailbox.PrimarySMTPAddress -FolderScope RecoverableItems | Where-Object {$_.FolderPath -eq "/Recoverable Items"} | Select-Object Identity,@{name="FolderAndSubFolderSize"; expression={[math]::Round(($_.FolderAndSubFolderSize.ToString().Split("(")[1].Split(" ")[0].Replace(",","")/1MB),2)}} | export-csv D:\All-Users-Folder-Size.csv -Append -NoTypeInformation $a++ Write-host "Processing Mailbox" $Mailbox.PrimarySMTPAddress } #Saving output for sending the report via email Import-csv D:\All-Users-Folder-Size.csv | Sort-Object {[int]$_.FolderAndSubFolderSize}, Identity -Descending | Export-csv D:\All-users-Sorted.csv -NoTypeInformation Remove-Item -Path D:\All-Users-Folder-Size.csv Send-MailMessage -From 'email address removed for privacy reasons' -To 'email address removed for privacy reasons'-Subject "Recoverable Items Report' -Body "Recoverable Items Report" -Attachments D:\All-users-Sorted.csv -Priority High -DeliveryNotificationOption OnSuccess, OnFailure -SmtpServer 'smtp.contoso.com'708Views0likes0Comments
Recent Blog Articles
No content to show