From 845f8424a717241608d81864839741be482176f0 Mon Sep 17 00:00:00 2001 From: frenzied-state <98334425+frenzied-state@users.noreply.github.com> Date: Tue, 17 Sep 2024 13:09:40 -0400 Subject: [PATCH] Update turn-off-directory-synchronization.md Updated the command Update-MgBetaOrganization to Update-MgOrganization. --- .../enterprise/turn-off-directory-synchronization.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/microsoft-365/enterprise/turn-off-directory-synchronization.md b/microsoft-365/enterprise/turn-off-directory-synchronization.md index 80e24be9f44..4a7dfd5e142 100644 --- a/microsoft-365/enterprise/turn-off-directory-synchronization.md +++ b/microsoft-365/enterprise/turn-off-directory-synchronization.md @@ -40,7 +40,7 @@ To turn off Directory synchronization: 1. First, install the required software and connect to your Microsoft 365 subscription. For instructions, see [Connect with the Microsoft Graph PowerShell module for Windows PowerShell](/microsoft-365/enterprise/connect-to-microsoft-365-powershell#connect-with-microsoft-graph-powershell). -2. Use **Update-MgBetaOrganization** to disable directory synchronization: +2. Use **Update-MgOrganization** to disable directory synchronization: ```powershell # Install v1.0 and beta Microsoft Graph PowerShell modules @@ -62,7 +62,7 @@ To turn off Directory synchronization: } # Perform the update - Update-MgBetaOrganization -OrganizationId $organizationId -BodyParameter $params + Update-MgOrganization -OrganizationId $organizationId -BodyParameter $params # Check that the command worked Get-MgOrganization | Select OnPremisesSyncEnabled