What is Msonline module

What is Msonline module

In this Azure article, Let’s discuss what is msonline exactly? and along, with that, we will also discuss how it is different from the AzureAD module.

What is Msonline module

This is the older version of the Azure Active Directory PowerShell module. This is the version one of the Azure Active Directory module.

There are some features that are available in the MSOnline module, that are not present still in version 2.0 i.e. AzureAD module.

Msonline provides some of the functionality that is not yet available in the latest version AzureAD module.

We have already discussed above how to install the Msonline module.

Below are a few PowerShell cmdlets of Azure Active Directory MSOnline module that help us to perform multiple tasks

Add-MsolAdministrativeUnitMemberThis helps us to add a member to an administrative unit.
Add-MsolGroupMemberThis helps to add a member to an existing security group.
Connect-MsolServiceThis command helps to initiate a connection to Azure Active Directory.
Disable-MsolDeviceThis helps us to disable a device object in Azure Active Directory.
Enable-MsolDeviceThis command helps to Enable a device object in Azure Active Directory
Get-MsolSubscriptionThis command helps to get subscriptions
Get-MsolUserThis cmdlet helps to get an individual device or a list of devices.
Get-MsolContactThis command gets you the contacts from Azure Active Directory.
Get-MsolDeviceThis cmdlet creates a user in the Azure Active Directory
Get-MsolGroupThis cmdlet helps to retrieve a group from Microsoft Azure Active Directory.
Get-MsolGroupMemberThis cmdlet helps to retrieve all members of the specified group.
New-MsolGroupThis cmdlet helps to add a new group to the Azure Active Directory
New-MsolUserIt helps to remove a contact from the Azure Active Directory.
Remove-MsolContactIt helps to remove a device object from the Azure Active Directory.
Remove-MsolDeviceIt helps to Modify the settings of a domain.
Set-MsolDomainIt helps to Modify settings of a domain.
Set-MsolGroupIt helps to update a security group.
Set-MsolUserIt helps to Modify a user in Azure Active Directory.

For more information on PowerShell cmdlet on Msonline, you can visit to Microsoft Official site.

What is the difference between Azure AD Module and MS Online module?

AzureADMSOnline
Microsoft recommends using the newer AzureAD module.MS Online is the old module for Azure Active Directory.
This module is known as the Azure Active Directory module version 1.0.This module is known as the Azure Active Directory module version 2.0.
Microsoft recommends to use the newer AzureAD module.There are some features that are available in MSOnline that are not present still in the AzureAD module.
To install the AzureAD module, you can use the below PowerShell cmdlet

PS C:\WINDOWS\system32> Install-Module AzureAD
To install the MSOnline module, you can use the below PowerShell cmdlet

PS C:\WINDOWS\system32> Install-Module -Name MSOnline

These are the differences between Azure AD Module and MS Online module.

Wrapping Up

In this Azure article, we discussed What is Msonline module and the difference between Azure AD Module and MS Online module. Thanks for reading this article !!!