There was a problem installing AADCloudSyncTools

He, Erchuang/何 二创 141 Reputation points
2022-02-10T02:09:13.6+00:00

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
2.Install-AADCloudSyncToolsPrerequisites

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
    2022-02-11T11:30:14.393+00:00

    @He, Erchuang/何 二创

    Install-AADCloudSyncToolsPrerequisites

    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.

    Reference: https://learn.microsoft.com/en-us/powershell/scripting/gallery/installing-psget?view=powershell-7.2

    https://www.powershellgallery.com/packages/AzureAD/2.0.2.140

    https://github.com/AzureAD/MSAL.PS

    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
    2022-02-10T11:29:25.94+00:00

    @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 https://learn.microsoft.com/en-us/azure/active-directory/cloud-sync/reference-powershell which has more details.

    Let me know if you have any further questions.


  2. ABDUL KARIIMU GGUBYA 166 Reputation points
    2022-02-16T09:52:01.75+00:00

    Hello
    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
    https://learn.microsoft.com/en-us/azure/active-directory/cloud-sync/reference-powershell