Add-Office365LicenseToUser cmdlet is used for adding Office365 licenses to AD users for which Office365 users already exist..

Input parameters


Mandatory (R/O)

Valid Values
1 Authentication Information (all parameters)  


(aliases: GUID, DistinguishedName)

ADObjectParameter R A property, that is used for managing the user

Value of one of these parameters  can be used as Identity:

1 GUID Globally Unique Identifier (ObjectGuid)
2 DistinguishedName Unique name of the object in Active Directory
3 OfferID int R Office365 license type identifier  
4 OriginatingServer string O Address of the server (domain name) where the object physically exists  

Output parameters

No parameters

Examples of using Add-Office365LicenseToUser cmdlet

Assigning an Office365 license to a user defined by GUID:

Add-Office365LicenseToUser -Identity "00DA4DAC-069F-41C6-864F-2C9043DB3F1C" -OfferID 1