restore a deleted user

Denise Wells 0 Reputation points
2025-11-12T15:01:24.1+00:00

Basically I need one email address to be forwarded to two people. I see the way to do that is via a distribution list. What I HAD was (this) one email address forwarding to me. When I tried to create a distribution list I got an error saying that address was already in use. So I deleted the email alias from my profile so I could set it up as a new user for the distribution list, but now it says that user already exists and it won't let me add it back.

Exchange | Exchange Server | Management
Exchange | Exchange Server | Management
The administration and maintenance of Microsoft Exchange Server to ensure secure, reliable, and efficient email and collaboration services across an organization.
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Hani-Ng 4,540 Reputation points Microsoft External Staff Moderator
    2025-11-13T01:57:18.11+00:00

    Hi Denise Wells

    Thank you for posting your question in the Microsoft Q&A forum. 

    Based on your description, I understand you need one email address to forward messages to two recipients, and you tried creating a Distribution List (DL) but encountered errors. I would like to provide some information from my side, which I hope proves useful and kindly let me know if I’m mistaken.

    Deleted aliases can remain in the system for 24–48 hours due to retention policies. If you need to reuse the email address immediately, you can purge the deleted object (recommended if you only need the email for a DL) or restore the deleted user if you want to recover the original account and mailbox.

    Option 1: Admin Center Steps

    • Go to Microsoft 365 Admin Center > Users > Active Users and find your primary user > Edit > Remove the alias from the list of email addresses.
    • Go to Deleted Users: If you see any user or mailbox with the same email address, select Permanently Delete.
    • Go to Groups > Distribution Lists to check if the email address is already assigned to another group and please wait for 24–48 hours for the system to purge the alias or proceed with PowerShell for immediate cleanup.

    Option 2: PowerShell Script to Check and Purge Alias

    You can run the following script in PowerShell after installing the ExchangeOnlineManagement module:

    # Install and import module
    Install-Module ExchangeOnlineManagement -Scope CurrentUser -Force
    Import-Module ExchangeOnlineManagement
    
    # Connect to Exchange Online
    Connect-ExchangeOnline
    
    # Set the email address you want to check
    $EmailAddress = "******@domain.com"
    
    Write-Host "Checking if $EmailAddress exists in your tenant..."
    
    # Check active mail-enabled objects
    $recipient = Get-Recipient -Filter "EmailAddresses -eq 'smtp:$EmailAddress'" -ErrorAction SilentlyContinue
    if ($recipient) {
        Write-Host "Alias is in use by:" -ForegroundColor Yellow
        $recipient | Format-Table Name,RecipientType,PrimarySmtpAddress
    } else {
        Write-Host "Alias not found in active objects." -ForegroundColor Green
    }
    
    # Check soft-deleted mailboxes
    $deletedMailbox = Get-Mailbox -SoftDeletedMailbox | Where-Object { $_.PrimarySmtpAddress -eq $EmailAddress }
    if ($deletedMailbox) {
        Write-Host "Alias exists in Soft Deleted Mailboxes:" -ForegroundColor Yellow
        $deletedMailbox | Format-Table DisplayName,PrimarySmtpAddress
        Write-Host "`nTo purge, run
        Write-Host "Remove-Mailbox -Identity <MailboxIdentity> -PermanentlyDelete" -ForegroundColor Red } else {     Write-Host "Alias not found in soft-deleted mailboxes." -ForegroundColor Green }
     
        Write-Host "`nCheck complete.`n" -ForegroundColor Cyan
    

    I hope these suggestions provide some helpful ideas.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".     

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.