Scripts repository
Assign Microsoft 365 license based on availability
The script assigns Microsoft 365 (Office 365) licenses based on their availability. For example, you can try assigning the Enterprise E5 license, and if there are no available E5 licenses, assign an Enterprise E3 one.
Assign/Revoke Microsoft 365 licenses based on user group membership priority
The script assigns a Microsoft 365 (Office 365) license for a user based on which AD group the user is a member of.
Cancel user creation if there are no available Microsoft 365 licenses
The script cancels creation of a new user if there are no available Microsoft 365 (Office 365) licenses in the specified plans of the tenant associated with the user.
Check Entra account last logon
The script checks whether the last logon date of the related Entra user account equals the current date.
Check group membership in Microsoft 365
The script returns true if the target user is not a member of any of the specified groups in Microsoft 365.
Check if number of unused Microsoft 365 licenses is below limit
The script returns true if the number of Microsoft 365 licenses is below limit.
Check Microsoft 365 license being assigned
The script checks whether the specified Microsoft 365 (Office 365) license is being assigned to a user
Check whether Microsoft 365 user account is blocked
The script check whether a user is blocked from signing in to Microsoft 365 (Office 365).
Check whether user has mailbox in Exchange Online
The script checks whether the user on which it is executed has a mailbox in Exchange Online.
Connect to Exchange with PowerShell
The script demonstrates how to connect to Exchange from Adaxes with the help of PowerShell.
Connect to Microsoft Teams
The script establishes connection to Microsoft Teams.
Convert user mailbox to a resource mailbox in Exchange Online
The script converts an Microsoft 365 (Office 365) user mailbox to a room or equipment mailbox in Exchange Online.
Copy permissions between mailboxes
The script copies Send As, Send On Behalf Of and Mailbox Rights permissions of a mailbox to the mailbox of the current user.
Copy Send As permissions from Exchange on-premises to Exchange Online distribution list
The script copies Send As permissions from a distribution list located on premises to its counterpart in Exchange Online.
Create Microsoft 365 contact based on AD contact
The script creates a Microsoft 365 (Office 365) contact based on an existing Active Directory contact.
Create new team for a user in Microsoft Teams
The script creates a new team for a user in Microsoft Teams. The script requires the MicrosoftTeamsPowerShell module to be installed on the computer where Adaxes service runs. To execute the script, create a custom command configured for the User ...
Disable remote mailbox
The script disables remote mailbox for the user.
Enable MFA with phone number for a user in Microsoft 365
The script enables MFA in Microsoft 365 for the target user with phone number applied.
Enable password reset at next logon in Microsoft 365
The script enables the 'Require this user to change their password when they first sign in' option for the user in Microsoft 365.
Enable remote mailbox
The script enables a remote mailbox for a user.