Home | Site Map | Cisco How ToNet How To | Wireless |Search | Forums | Services | Donations | Careers | About Us | Contact Us|

manage Azure Active Directory using PowerShell

Active Directory, Domain, DNS, WINS, DHCP, SBS, New Releases.

manage Azure Active Directory using PowerShell

Postby chicagotech » Wed Sep 13, 2017 10:11 pm

You can use the Azure Active Directory PowerShell Module Version 2 for Azure AD administrative tasks such as user management, domain management and for configuring single sign-on. The Azure AD PowerShell Version 2 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.

Prerequisites
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.

Download and Installing the Azure AD Module

To install the General Availability version of the module on your computer you can run
Install-Module AzureAD

To install the public preview release, use
Install-module AzureADPreview

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

Connect to Azure AD

Before you can run any of the cmdlets to manage Azure AD, 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:
$AzureAdCred = Get-Credential
Connect-AzureAD -Credential $AzureAdCred

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:
Connect-AzureAD -AzureEnvironment "AzureGermanyCloud"

This example connects your PowerShell session to the German AzureAD environment. See Connect-AzureAD for more information.
Networking, Internet, Routing, VPN Troubleshooting on http://www.ChicagoTech.net
How to Setup Windows, Network, VPN & Remote Access on http://www.HowToNetworking.com
chicagotech
Site Admin
 
Posts: 7086
Joined: Mon Nov 27, 2006 1:24 pm
Location: Chicago USA

Return to Windows

Your Ad Here

Who is online

Users browsing this forum: Yahoo [Bot] and 8 guests