Get-EntraIDSync
SYNOPSIS
Retrieve the synchronization status of the Azure AD Connect service.
SYNTAX
DESCRIPTION
This function retrieves the synchronization status of the Azure AD Connect service running on a specified server. It uses the `Invoke-Command` cmdlet to remotely execute the `Get-ADSyncConnectorRunStatus` command and returns the current run state.
EXAMPLES
EXAMPLE 1
Retrieves the synchronization status of the Azure AD Connect service on the default server `SRVACCMANPR01`.
EXAMPLE 2
Retrieves the synchronization status of the Azure AD Connect service on the server `SRVACCMANPR02`.