AD Connect on-prem

John Patrick Villones 0 Reputation points
2023-03-26T06:01:59.1033333+00:00

Good Day! Hi , There's anyone here that have experience on how to removed all traces in Azure AD after fully uninstall the AD connect to On-Prem? there's a way to removed them? and possible to reconnect again but different details (Immutable ID, New DC, New Object ID, New CN, , New Domain )

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,383 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Sedat SALMAN 13,075 Reputation points
    2023-03-26T08:22:08.1233333+00:00

    you can follow these steps

    • Uninstall Azure AD Connect
    • Remove any remaining Azure AD Connect objects in Azure AD (In the search bar, type "Azure AD Connect" and delete any Azure AD Connect instances you find.)
    • Clean up on-premises Active Directory
       Install-Module MSOnline
       Connect-MsolService
       # Remove all users except the initial Global Administrator
       Get-MsolUser -All | Where-Object { $_.UserPrincipalName -notlike "*onmicrosoft.com" } | Remove-MsolUser -Force
       # Remove all groups
       Get-MsolGroup -All | Remove-MsolGroup -Force
       
    

    Reinstall and configure Azure AD Connect

    0 comments No comments