OFFICE 365 : Server 2012 Essentials : Duplicate User after Powershell user import

I created a user account through Active Directory instead of the server 2012 essentials dashboard.  I then imported the user account using powershell.

In the dashboard, I then modified the user account to assign folder permissions, remote access, and added Office 365 account.

There is now a duplicate user listed in the dashboard (see attached screenshot).

The second "duplicate" user has a login name of "domain\username" instead of just the username.

The user cannot log on to the remote access webpage with either username.

I want to delete the second user (domain\username).  The option to "Assign Office 365 account" is displayed (highlighted in screenshot), but when you go into the user account properties the 365 account is listed.  It is the same Office 365 account as the original user.

Error when trying to deactivate the user account:  
Cannot retrieve the user account information.  An unknown error prevented the wizard from retrieving the user account information. If this problem persists, restart the server, then try again.

I want to attempt to delete the duplicate user, but I do not want to accidentally delete the Office365 profile.

Thank you for your help!
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Vasil Michev (MVP)Commented:
There is no attachment :)

As for fixing the issue, you can remove the user in the Cloud and hope that next synchronization doesnt duplicate it again. You have two options here:

- User the Windows Azuer module for PowerShell and the Remove-MSOLUser command
- Filter the user from the DirSync UI so it gets removed from the cloud

Of course be careful which one you will apply the action on, as you might end up deleting the correct one (you should still be able to recover it from the Deleted users container). If he has any important messages in his mailbox, make a backup first in case anything goes wrong.

Here are some links:

Windows Azure module for Windows PowerShell: 

Help on Remove-MSOLUser cmdlet:

Configure filtering for directory synchronization:

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
ebsadminAuthor Commented:
Attached screenshot.
Screenshot of 2012 Dashboard / Users
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Office 365

From novice to tech pro — start learning today.