Table of Contents

Office 365

In the Cloud world today Microsoft has been moving its desktop suite of Office products to the Cloud to be available anytime on demand. Microsoft has also been doing this with its desktop suite of Administration software. Office 365 is the cloud platform name for the Desktop suite of products available on cloud. Microsoft Azure is a subset of the desktop ADministration software. They both relate to each other and it's best to know the differences between each.

Office 365 is SaaS providing an online version of the Office suite (Word, Excel, Outlook, PowerPoint, One Note, Access, Lync, etc.) along with SharePoint, Lync and Exchange. In contrast, Windows Azure is IaaS and PaaS. Windows Azure can be divided into Compute, Data Services, App Services, Networking and Store.

Microsoft Azure, formerly known as Windows Azure, is Microsoft's public cloud computing platform. It provides a range of cloud services, including those for compute, analytics, storage and networking.

Office 365 uses Azure Active Directory (Azure AD) to manage user identities behind the scenes. Your Office 365 subscription includes a free subscription to Azure AD so that you can integrate Office 365 with Azure AD if you want to sync passwords or set up single sign-on with your on-premises environment.

Microsoft 365 PowerShell module Setup

1) First download and install the following: https://go.microsoft.com/fwlink/p/?LinkId=286152
2) Type the following in PowerShell to load the PowerShell module and connect to the 365 administration portal using your credentials.
install-module -name MSOnline
Connect-MsolService -Credential $Credentials

Microsoft 365 PowerShell Commands

To see if new user exists in 365

Get-MsolUser -UserPrincipalName "jdoe@poshpython.com"

See users license

((Get-MsolUser -UserPrincipalName "jdoe@poshpython.com").licenses).accountskuid

To see available licenses to assign


assign license

Set-MsolUserLicense -UserPrincipalName "jdoe@poshpython.com" -AddLicenses "poshpython:DESKLESSPACK" -usagelocation australia

$Then to remove license

Set-MsolUserLicense -UserPrincipalName "jdoe@poshpython.com" -RemoveLicenses poshpython:STANDARDPACK

Then to wrap up check to see iflicensed is TRUE

Get-MsolUser -UserPrincipalName "jdoe@poshpython.com"