Hi,
Possible causes
- Missing or corrupted Azure AD Connect PowerShell module: The Azure AD Connect module, which includes the Get-ADSyncConnector command, might not be installed correctly or corrupted.
- Incorrect PowerShell execution context : If you try to run Azure AD Connect commands from a PowerShell session that hasn't loaded the correct module, commands such as Get-ADSyncConnector won't be recognized.
- Insufficient permissions : The user account running the Sync Rule Editor or PowerShell might not have the necessary rights to interact with the sync connectors.
Solutions
1. Verify that the Azure AD Connect module is loaded
Make sure that the Azure AD Connect module is loaded in your PowerShell session before running any commands specific to that module. To do this, you can use the following commands:
Import-Module ADSync
Then check if the module has been loaded:
Get-Module -Name ADSync
If the module is missing, reinstall Azure AD Connect to restore the module.
2. Run the command from the dedicated PowerShell console
You must run these commands in a PowerShell session that is open as an administrator on the server where Azure AD Connect is installed. Try the following steps:
- Open PowerShell as an administrator.
- Manually import the module:
Import-Module "C:\Program Files\Microsoft Azure AD Sync\Bin\ADSync"
- Run the command to see the available connectors:
Get-ADSyncConnector
If this works, then the problem is with the Sync Rule Editor environment. You may need to reinstall Azure AD Connect or restart the sync service.
3. Repair or reinstall Azure AD Connect
If the ADSync module is missing or corrupted, a repair or reinstallation of Azure AD Connect could resolve the issue.
- Repair : Try running the repair from the Control Panel or by downloading the latest Azure AD Connect installer and choosing the repair option.
- Reinstall: If the repair fails, uninstall and reinstall Azure AD Connect, and then check if the Get-ADSyncConnector command works correctly after installation.
4. Check execution permissions
Make sure that the account you're using to run the orders has sufficient permissions. They must be an on-premises administrator and have rights to Azure AD Connect services.
5. Additional error logs
Check the Azure AD Connect logs in the Event Viewer > Applications and Services Logs > Microsoft > AAD), for any additional errors related to PowerShell modules or synchronization.
Hopping it helps!
Possible causes
- Missing or corrupted Azure AD Connect PowerShell module: The Azure AD Connect module, which includes the Get-ADSyncConnector command, might not be installed correctly or corrupted.
- Incorrect PowerShell execution context : If you try to run Azure AD Connect commands from a PowerShell session that hasn't loaded the correct module, commands such as Get-ADSyncConnector won't be recognized.
- Insufficient permissions : The user account running the Sync Rule Editor or PowerShell might not have the necessary rights to interact with the sync connectors.
Solutions
1. Verify that the Azure AD Connect module is loaded
Make sure that the Azure AD Connect module is loaded in your PowerShell session before running any commands specific to that module. To do this, you can use the following commands:
Import-Module ADSync
Then check if the module has been loaded:
Get-Module -Name ADSync
If the module is missing, reinstall Azure AD Connect to restore the module.
2. Run the command from the dedicated PowerShell console
You must run these commands in a PowerShell session that is open as an administrator on the server where Azure AD Connect is installed. Try the following steps:
- Open PowerShell as an administrator.
- Manually import the module:
Import-Module "C:\Program Files\Microsoft Azure AD Sync\Bin\ADSync"
- Run the command to see the available connectors:
Get-ADSyncConnector
If this works, then the problem is with the Sync Rule Editor environment. You may need to reinstall Azure AD Connect or restart the sync service.
3. Repair or reinstall Azure AD Connect
If the ADSync module is missing or corrupted, a repair or reinstallation of Azure AD Connect could resolve the issue.
- Repair : Try running the repair from the Control Panel or by downloading the latest Azure AD Connect installer and choosing the repair option.
- Reinstall: If the repair fails, uninstall and reinstall Azure AD Connect, and then check if the Get-ADSyncConnector command works correctly after installation.
4. Check execution permissions
Make sure that the account you're using to run the orders has sufficient permissions. They must be an on-premises administrator and have rights to Azure AD Connect services.
5. Additional error logs
Check the Azure AD Connect logs in the Event Viewer > Applications and Services Logs > Microsoft > AAD), for any additional errors related to PowerShell modules or synchronization.