There was a problem installing AADCloudSyncTools

He, Erchuang/何 二创 141 Reputation points

After completing the AADC installation, an error occurred when installing AADCloudSyncTools.
Here is what I do on Powershell:
1.[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12

An error occurred while executing the command in the second step, the error message is as follows:

'Install-AADCloudSyncToolsPrerequisites' is a command, a function, and a scraper
It is not recognized as the name of the program, or the file. Make sure the name is correctly described and include the path
Make sure that the path is correct and try again.
Location: 1 character: 1

  • Install-AADCloudSyncToolsPrerequisites
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  • CategoryInfo : ObjectNotFound: (Install-AADCloudSyncToolsPrerequisites:String) [], CommandNotFoundException
  • FullyQualifiedErrorId : CommandNotFoundException

Thanks a lot for everyone's help

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,391 questions
0 comments No comments
{count} votes

Accepted answer
  1. Givary-MSFT 27,486 Reputation points Microsoft Employee

    @He, Erchuang/何 二创


    This cmdlet checks for the presence of PowerShellGet v2.2.4.1 or later, the Azure AD module, and the MSAL.PS module. It installs these items if they're missing.


    Note: After enabling TLS 1.2 on the server, restart the server and follow these articles to download respective updates/modules for PowerShellGet, Azure AD Module & MSAL.PS module.

    Let me know if the issue still persists.

    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

    1 person found this answer helpful.

2 additional answers

Sort by: Most helpful
  1. Givary-MSFT 27,486 Reputation points Microsoft Employee

    @He, Erchuang/何 二创

    Thank for you reaching out to us.

    Installing AADCloudSyncTools needs TLS 1.2 and MSAL.PS Module as Pre-reqs.

    Refer to this article which has more details.

    Let me know if you have any further questions.

  2. ABDUL KARIIMU GGUBYA 166 Reputation points

    You had to run the commands below before you start installation since you had to load the module

    Import-module -Name "C:\Program Files\Microsoft Azure AD Connect Provisioning Agent\Utility\AADCloudSyncTools"

    Verify its loaded with below
    Get-module AADCloudSyncTools

    Reference link below