Home Dashboard Directory Help

 

Azure Active Directory PowerShell with Modern Authentication

We are happy to announce the public preview of modern authentication to the Azure Active Directory PowerShell Module. Previous iterations of the AAD PowerShell took a dependency on authentication through the Microsoft Online Services Sign-In Assistant. Modern authentication uses the Active Directory Authentication Library (ADAL) to bring a better sign-in experience for the user, with more advance authentication options like multi-factor authentication (MFA). Now when administering your Office 365 Subscription or Azure Active Directory Tenant, you can expect the same great sign-in experience you currently have with your other Office 365 products. 

Our specific goals for this public preview is to enable users who have accounts protected with MFA to authenticate and use AAD PowerShell, while minimizing the number of changes to the existing cmdlets. You should notice no differences when using the new PowerShell module after you have authenticated, but we have made a few changes to the initial Connect-MSOLService cmdlet:

1.       We have removed the Connect-MSOLService –CurrentCredentials parameter for the time being.

2.       We have added a new parameter: Connect-MSOLService –AccessToken where you can sign in to AAD PowerShell by providing an AAD Access Token that you have acquired elsewhere.

In addition to the changes to support Modern Authentication this release also includes new cmdlets to manage devices within Azure AD.  Those cmdlets are as follows:

  • Get-MsolDevice
  • Enable-MsolDevice
  • Disable-MsolDevice
  • Remove-MsolDevice

We look forward to hearing your feedback on the preview release.

 

UPDATE:

As of 10/30/15 we have updated the AAD PowerShell Module Download MSI to include a more updated version of the module. This updated version contains two new device registration service management cmdlets:

  • Get-MsolDeviceRegistrationServicePolicy
  • Set-MsolDeviceRegistrationServicePolicy

The Get-MsolDeviceRegistrationServicePolicy Cmdlet is used to read the Azure AD Device Registration service settings. The Set-MsolDeviceRegistrationServicePolicy Cmdlet is used to manage the Azure AD Device Registration service settings.

 

UPDATE 2:

Public Preview - Version 1.1.117.0

This release adds functionality to manage directory settings on groups. 

  • Get-MsolAllSettings
  • Get-MsolAllSettingTemplate
  • Get-MsolSettings
  • Get-MsolSettingTemplate
  • New-MsolSettings
  • Remove-MsolSettings
  • Set-MsolSettings

 

UPDATE 3: 

Public Preview - Version 1.1.130.0

This release added capabilities to configure settings that manage several features for unified groups, and several minor changes have been made to existing cmdlets.

The following cmdlets have been added:

  • Get-MsolAllSettings
  • Get-MsolAllSettingTemplate
  • Get-MsolSettings
  • Get-MsolSettingTemplate
  • New-MsolSettings
  • Remove-MsolSettings
  • Set-MsolSettings

The following cmdlets have been modified: 

  • Disable-MsolDevice 
  • Enable-MsolDevice 
  • Get-MsolDevice 
  • Get-MsolDeviceRegistrationServicePolicy 
  • Remove-MsolDevice 
  • Set-MsolDeviceRegistrationServicePolicy   
  • Connect-MsolService

UPDATE 4:

General Availability - Version 1.1.166.0

This is a release of Azure Active Directory PowerShell V1 for General Availability.

The following cmdlets have been added: 

  • Get-MsolCompanyAllowedDataLocation
  • Set-MsolCompanyMultiNationalEnabled
  • Set-MsolCompanyAllowedDataLocation

The following cmdlets are not available in this release but are available in the latest Public Preview release of Azure Active Directory PowerShell Version 1.1.130.0. 

  • Get-AllSettings
  • Get-Setting
  • New-Setting
  • Set-Setting
  • Remove-Setting
  • Get-SettingTemplate
  • Get-AllSettingTemplate

How to report issues: If you encounter something you believe to be an error, please email AADPowerShellV1GA@microsoft.com with:

1.   The steps to reproduce the error

2.   The log files found here: C:\Users\[youralias]\AppData\Local\Microsoft\Office365\Powershell

 

Try it out! (go to Downloads - Release Notes included).