Avatar of defrey
defrey
Flag for Australia asked on

Office 365 - Sorry, it looks like that email address is already in use. Use another one.

I am trying to create a new user with a new email address but get the error "Sorry, it looks like that email address is already in use. Use another one."

The email address has been created previously by mistake & then deleted.

I am sure that the email address hasn't been assign to another user, they are only 2 & I have checked the aliases.

How if by any chance the email address I need to create in the system can be removed entirely to make sure I can create a fresh one.

Thanks

Regards
Microsoft 365Exchange

Avatar of undefined
Last Comment
Alan Hardisty

8/22/2022 - Mon
ReneD100

I've noticed It takes a while before the address gets released again by the system. After a few hours I could re-create the same address again/
Alan Hardisty

You can use the following command in PowerShell to find and identify an account that is using the address you want to create:

Get-Recipient | where {$_.EmailAddresses -match "emailaddress@"} | ft Name, RecipientType, EmailAddresses

Then you can modify the account / distribution group or whatever is using the address and go on to create the account you want to create.

Alan
ReneD100

@Alan: Powershell on 365?
Your help has saved me hundreds of hours of internet surfing.
fblack61
VB ITS

Yes, it's possible ReneD100. See here for more information: http://technet.microsoft.com/en-us/library/dn568015.aspx
Alan Hardisty

Absolutely.  Use it all the time.
ReneD100

Cool, didnt know that would work. Thanks for the link!
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
defrey

ASKER
@ Alan

Command is not working for me
"Get-Recipient | where {$_.fred@sitename.com -match "fred@sitename.com"} | ft Name, RecipientType, EmailAddresses"

Please screen shot of error attached


Thanks
Capture.png
Alan Hardisty

You have modified a bit too much of the script.  Try the following:

Get-Recipient | where {$_.EmailAddresses -match "fred@sitename.com"} | ft Name, RecipientType, EmailAddresses

Alan
defrey

ASKER
Still no success, but get a different error now

"The Term "Get recipient" is not recognised as the name of a cmdlet, function, script file ..........

Thanks
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck
Alan Hardisty

There is a Minus symbol between Get and Recipient - the error seems to suggest you aren't adding it.

Please copy / paste the command or type it out carefully / accurately.

Alan
defrey

ASKER
Hi Alan,

The exact steps that I am doing are:

1) Open powershell as administrator

2) $Cred = Get-credential
I enter the admin user & password

3) Copy & paste
Get-Recipient | where {$_.EmailAddresses -match "fred@sitename.com"} | ft Name, RecipientType, EmailAddresses

Thats it

Then the error
""The Term "Get recipient" is not recognised as the name of a cmdlet, function, script file .'

not sure what I am missing?
ASKER CERTIFIED SOLUTION
Alan Hardisty

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question