Skip to content

Commit

Permalink
Update turn-off-directory-synchronization.md
Browse files Browse the repository at this point in the history
Updated the command Update-MgBetaOrganization to Update-MgOrganization.
  • Loading branch information
frenzied-state authored Sep 17, 2024
1 parent 6a325de commit 845f842
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 845f842

Please sign in to comment.