Install The Azure Active Directory Module For Windows Powershell

Install The Azure Active Directory Module For Windows Powershell-->

You can use the Azure Active Directory PowerShell Module Version for Graph for Azure AD administrative tasks such as user management, domain management and for configuring single sign-on. The cmdlets listed here are different than the MSOL cmdlets which are part of Azure Active Directory Version 1.0.

Azure Active Directory Module for Windows PowerShell V1 (64-bit version) Installing PowerShell V2 from the PowerShell Gallery The AzureAD PowerShell V2 module can be downloaded and installed from the PowerShell Gallery, www.powershellgallery.com. Feb 26, 2016  Install the Active Directory PowerShell Module on Windows 10. Try Out the Latest Microsoft Technology. Quick access. My contributions Upload a contribution. Install the Active Directory PowerShell Module on Windows 10. Download the CPU-architecture-specific version of the Windows 10 RSATInstall the RSATEnable the Active Directory.

The Azure AD PowerShell for Graph module has two versions: a Public preview version and a General Availability version. It is not recommended to use the Public Preview version for production scenarios.The Azure AD PowerShell for Graph preview module can be downloaded from the PowerShell Gallery at the AzureADPreview page.The Azure AD PowerShell for Graph General Availability module can be downloaded from the PowerShell Gallery at the AzureAD page.

Installing the Azure AD Module

The Azure AD Module is supported on the following Windows operating systems with the default version of Microsoft .NET Framework and Windows PowerShell: Windows 8.1, Windows 8, Windows 7, Windows Server 2012 R2, Windows Server 2012, or Windows Server 2008 R2.

If your computer has all the prerequisites for the installation, to install the General Availability version of the module on your computer you can run

To install the public preview release, use

Note that you cannot install both the preview version and the GA version on the same computer at the same time.

About the PowerShell Gallery

The Azure AD module is distributed using the PowerShell gallery. Installing items from the Gallery requires the latest version of the PowerShellGet module, which is available in Windows 10, in Windows Management Framework (WMF) 5.0, or in the MSI-based installer (for PowerShell 3 and 4).

  • Get Windows 10,
  • Get WMF 5.0, or

With the latestPowerShellGetmodule, you can:

  • Search through items in the Gallery with Find-Module and Find-Script
  • Save items to your system from the Gallery with Save-Module and Save-Script
  • Install items from the Gallery with Install-Module and Install-Script
  • Upload items to the Gallery with Publish-Module and Publish-Script
  • Add your own custom repository with Register-PSRepository

Check out the Getting Started page for more information on how to use PowerShellGet commands with the Gallery. You can also run Update-Help -Module PowerShellGet to install local help for these commands.

Supported Operating Systems

The PowerShellGet module requires PowerShell 3.0 or newer.Therefore, PowerShellGet requires one of the following operating systems:

  • Windows 10
  • Windows 8.1 Pro
  • Windows 8.1 Enterprise
  • Windows 7 SP1
  • Windows Server 2016 TP5
  • Windows Server 2012 R2
  • Windows Server 2008 R2 SP1

PowerShellGet also requires .NET Framework 4.5 or above. You can install .NET Framework 4.5 or above from here.

Updating the Azure AD Module

You can check the version of the module you have installed on your computer by running this command:

To update the version of the Azure AD PowerShell module on your computer, re-run the Install-Module cmdlet:

This command checks the PowerShell gallery to see if a newer version is available and installs it on your computer if the version on the PowerShell Gallery is newer than the one installed on your computer.

Connect to Azure AD

Cannot Install Azure Active Directory Module For Windows Powershell

Before you can run any of the cmdlets discussed in this article, you must first connect to your online service.To do so, run the cmdlet Connect-AzureAD at the Windows PowerShell command prompt. You will then be prompted for your credentials. If you want, you can supply your credentials in advance, for example:

The first command prompts for credentials and stores them as $AzureAdCred.The next command uses those credentials as $azureadcred to connect to the service.

To connect to a specific environment of Azure Active Directory, use the AzureEnvironment parameter, as follows:

This example connects your PowerShell session to the German AzureAD environment.See Connect-AzureAD for more information.

More about Windows PowerShell

Active

Windows PowerShell is a task-based command-line shell and scripting language designed for system administration.Unlike most shells, which accept and return text, Windows PowerShell is built on top of the .NET Framework, and accepts and returns .NET Framework objects.

Windows Azure Active Directory Powers…

Windows PowerShell introduces the concept of a cmdlet (pronounced 'command-let'), a simple, single-function command-line tool built into the shell.Cmdlets have the following naming convention: a verb and noun separated by a dash (-), such as Get-Help, Get-Process, and Start-Service.Windows PowerShell includes more than one hundred basic core cmdlets.

Install Active Directory Powershell Modu…

For more information about, or for the syntax of, any of the cmdlets, use the Get-Help <cmdlet name> command, where <cmdlet name> is the name of the cmdlet that you want to research.For more detailed information, you can run any of the following commands:

  • Get-Help <cmdlet name> -Detailed
  • Get-Help <cmdlet name> -Examples
  • Get-Help <cmdlet name> -Full

For more information about Windows PowerShell, see the Getting Started with Windows PowerShell.

If you are planning to run a Powershell script with Active Directory commandlets on a Win 7 machine or any other machine that DOES NOT have AD role then you need to do some preliminary steps as listed below.

Step1:

By default one can not import Active Directory module in Powershell in Windows 7. You need to do either of the below:

  • Download 'Active Directory Management Gateway Service' on 2003 or 2008 server [http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=2852]
  • Download 'Remote Server Administration Tools' on Win 7 [KB958830: http://www.microsoft.com/download/en/details.aspx?id=7887]

By doing this you will get the Active directory module to be used in the Power shell scripting.

Install Active Directory Powershell Module Windows 10

In this article I have explained the steps for Windows 7.

Install The Azure Active Directory Module For Windows Powershell (64-bit Version)

Step2:

Active Directory Module For Windows Po…

After the installation of the KB958830 go to Windows Feature and enabled the highlighted items as below.

Comments are closed.