Azure Active Directory Module–Newer Version Available Notifications


When connecting to Azure Active directory with the MSOnline PowerShell module, it will check the currently installed version.  This allows the service to let you know that a newer version may be available.  If the locally installed module is out-dated, you will get a message like the below:

WARNING: There is a newer version of the Microsoft Online Services Module.  Your current version will still work as expected, however the latest version can be downloaded at https://portal.microsoftonline.com.

WARNING: There is a newer version of the Microsoft Online Services Module

The build history for the Azure AD  Module is available at Microsoft Azure Active Directory PowerShell Module Version Release History.

Checking Installed Module Version

The easiest way to check the installed version of the Azure Active Directory module is to look at the fileversion data.  To do this in PowerShell:

(Get-Item C:\Windows\System32\WindowsPowerShell\v1.0\Modules\MSOnline\Microsoft.Online.Administration.Automation.PSModule.dll).VersionInfo.FileVersion

The above is one line that may wrap. In the case below, the module version is reported as 1.0.6488.25 – which is rather old at the time of writing.  This was installed back in November 2013.

Checking Azure AD PowerShell Module Version

While looking in Add/Remove programs shows the date the module was installed, it is NOT detailed with regards to Azure AD module version information.  Note below that the module is stated as version 1.0 – that is not a detailed response so do not rely upon it.

image

The same low level of detail is also present in the registry at: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall. 

Updating Installed Azure AD Module

Close down any existing Azure AD sessions.  The out-dated Azure AD module must be manually uninstalled.  This can be done from Add/Remove programs or the uninstall command contained within the application’s UninstallString registry key at the above registry path.  Beware of any potential version issues if looking at that registry key.  For example, the uninstall string for module 1.0.6488.25 is:

MsiExec.exe /X{43CC9C53-A217-4850-B5B2-8C347920E500}

Module 1.0.8362.1 has:

MsiExec.exe /X{43CC9C53-A217-4850-B5B2-8C347920E500}

These two examples are the same, but that may change.

Once the old AD module has been removed, also check that the required version of the SIA (Sign In Assistant) is also present.  It may be possible that an older version of SIA is present that must also be removed and the latest one installed.

As of the time of writing, the latest SIA available is 7.250.4556.0.  This along with the Azure AD module are linked from: https://aka.ms/aadposh

 Sign In Assistant Version 7.250.4556.0 Download

Assuming that the correct version of SIA is installed, kick off the installer for the new Azure AD module.

Installing Azure AD Module

By default it will install to:

C:\Program Files\Windows Azure Active Directory\Powershell\

Installing Azure AD Module - Install Path

And if you chose to create a desktop shortcut, the shortcut will be created with the following:

C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe  -NoExit -Command "Import-Module MSOnline"

Running The Updated Azure AD Module

Note the difference - there are no more warnings and the MSOL cmdlets are available.  Get-MSOLDomain was used as a test.  In the example below, the module is now reported as version 1.0.8362.1.

Azure AD PowerShell Module Updated

However, Add/Remove Programs continues to show version 1.0 is installed.

Add/Remove Programs Version Information

Oh well, it’s not a perfect world…

Cheers,

Rhoderick

Comments (5)

  1. Greg Lambert says:

    The link "http://social.technet.microsoft.com/wiki/contents/articles/28552.microsoft-azure-active-directory-powershell-module-version-release-history.aspx"
    gives version numbers like 8362.1, 8262.2, 8073.4, 8000.119. But the Get-Item cmdlet is returning versions like 1.0.6488.25, 1.0.6694.22. How do you compare/correlate these version numbers?!?

  2. That is probably a very old version of the module Greg. If you look at add/remove programmes, was it installed sometime in 2012 or 2013?

    Cheers,
    Rhoderick

  3. Eduardo Tafner says:

    Greg, remove the "1.0" and you'll have the version number. 6488.25 and 8362.1. Please compare the two screenshots of the PowerShell windows.

  4. Eduardo Tafner says:

    By the way, I have one of that older version packages. Problem is that I installed the Portuguese Brazilian version which always downloads an older version. If I download an English/United States package it downloads an updated version.

  5. Can I ask what link you are getting the BR versions from Eduardo?

    Cheers,
    Rhoderick

Skip to main content