You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Can't manage or remove objects that were synchronized through the Azure Active Directory Sync tool
10
10
@@ -34,33 +34,36 @@ This issue may occur if one or more of the following conditions are true:
34
34
35
35
You want to manage objects in Office 365, Azure, or Intune and you no longer want to use directory synchronization.
36
36
37
-
[!INCLUDE [Azure AD PowerShell deprecation note](~/../support/reusable-content/msgraph-powershell/includes/aad-powershell-deprecation-note.md)]
38
-
39
-
1. If you're not running Windows 10, install the 64-bit version of the Microsoft Online Services Sign-in Assistant: [Microsoft Online Services Sign-in Assistant for IT Professionals RTW](https://download.microsoft.com/download/7/1/E/71EF1D05-A42C-4A1F-8162-96494B5E615C/msoidcli_32bit.msi).
40
-
1. Install the Microsoft Azure Active Directory module for Windows PowerShell:
41
-
42
-
1. Open an elevated Windows PowerShell command prompt (run Windows PowerShell as an administrator).
43
-
2. Run the `Install-Module MSOnline` command.
44
-
45
-
1. Disable directory synchronization by running the following command:
37
+
1. Make sure that [Microsoft Graph PowerShell is installed](/powershell/microsoftgraph/installation).
38
+
2. Use the `Connect-MgGraph` command to sign in with the required scopes such as `Organization.ReadWrite.All`. For more information, see [Get started with the Microsoft Graph PowerShell SDK](/powershell/microsoftgraph/get-started).
39
+
1. Disable directory synchronization by running the [update-mgorganization](/powershell/module/microsoft.graph.identity.directorymanagement/update-mgorganization) command.
46
40
47
41
```powershell
48
-
Set-MsolDirSyncEnabled -EnableDirSync $false
42
+
43
+
$organizationId = (Get-MgOrganization).Id
44
+
45
+
# Store the False value for the DirSyncEnabled Attribute
This command will return **True** or **False**. Continue to run this command periodically until it returns **False**, and then go to the next step.
60
+
This command will return **True** or ***False**. Continue to run this command periodically until it returns **False**, and then go to the next step.
58
61
59
62
It may take 72 hours for deactivation to be completed. The time depends on the number of objects that are in your cloud service subscription account.
60
63
61
64
1. Try to update an object by using Windows PowerShell or by using the cloud service portal.
62
65
63
-
Step 4 may take a while to be completed. There's a process in the cloud service environment that computes attribute values. The process must be completed before the objects can be changed by using Windows PowerShell or by using thecloud service portal.
66
+
Step 4 may take a while to be completed. There's a process in the cloud service environment that computes attribute values. The process must be completed before the objects can be changed by using Windows PowerShell or by using thecloud service portal.
64
67
65
68
### You delete an object from an on-premises AD DS. However, the object isn't deleted from your cloud service subscription account
66
69
@@ -70,7 +73,7 @@ Force directory synchronization by using the steps on this article: [Start the S
70
73
- If all updates and deletions aren't synchronized to the cloud service, contact Support.
71
74
72
75
> [!NOTE]
73
-
> As an alternative resolution for this scenario, an object can be manually deleted in the cloud service. However, the object can't be updated in the cloud service. For more information about how to resolve this issue, see the following Microsoft Knowledge Base article: [Object deletions aren't synchronized to Microsoft Entra ID when using the Azure Active Directory Sync tool](https://support.microsoft.com/help/2709902).
76
+
> As an alternative resolution for this scenario, an object can be manually deleted in the cloud service. However, the object can't be updated in the cloud service. For more information about how to resolve this issue, see the following Microsoft Knowledge Base article: [Object deletions aren't synchronized to Microsoft Entra ID when using the Azure Active Directory Sync tool](https://support.microsoft.com/help/2709902).
0 commit comments