Created
February 7, 2017 10:06
-
-
Save JanVidarElven/35fba9647fbfbe3e99718f0ad734b241 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Azure AD v2 PowerShell Quickstart module install | |
# Azure AD has a GA version: AzureAD and Preview version: AzureADPreview | |
# Check available versions installed | |
Get-Module AzureAD -ListAvailable | |
Get-Module AzureADPreview -ListAvailable | |
# Install from PowerShell Gallery | |
Install-Module AzureAD | |
Install-Module AzureADPreview | |
# Update new versions from PS Gallery | |
Update-Module AzureAD | |
Update-Module AzureADPreview | |
# Check and uninstall old versions | |
$Latest = Get-InstalledModule ("AzureADPreview") | |
Get-InstalledModule ("AzureADPreview") -AllVersions | ? {$_.Version -ne $Latest.Version} | Uninstall-Module -WhatIf | |
# Check Commands, see also list of commands at: ref. https://docs.microsoft.com/en-us/powershell/azuread/v2/azureactivedirectory | |
Get-Command -Module AzureADPreview |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment