r/PowerShell • • Dec 05 '25

Powershell Help needed

Hi, i removed the domain in the source and removed the OU from the entra connect in the source, so that i can do the domain cut over.
Now i cant restore the users to the onmicrosoft as cloud objects; usually it worked out well for me;

this time it gives me this response:
Errors detected while trying to restore the user
restoreUserErrors: ErrorValue: <pii>
<pii>briera</pii>@OLD-DOMAIN.es</pii>
ObjectType: ConflictingObjectId;
ErrorType: UserPrincipalName, ErrorId: InvalidDomain

I tired many AI help but it didnt work out well.

3 Upvotes

4 comments sorted by

View all comments

Show parent comment

3

u/g3n3 Dec 06 '25

Even harder to help you with this amount of grammar issues and lack of code, etc. good luck.