1. Install  .NET Framework 3.51 feature
  2. After you install .NET Framework 3.51 get the latest updates
  3. Install the Microsoft Online Services Sign-In assistant
  4. Install the Windows Azure Active Directory (Azure AD) module for the appropriate version of your operating system.