Scripts repository
Provision shared and room mailboxes
These scripts show how to provision resource mailboxes in Exchange On-Premises.
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.
Import group members from CSV file
The script adds AD objects specified in a CSV file to a group.
Force Active Directory replication
The script forces replication in the domain of the object the script is executed for.
Create username automatically
This PowerShell function can be used to create a username for a new user automatically based on values of the user properties.
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.
Import user information from SQL database
The script updates user accounts in Active Directory based on information in an SQL database. If a user does not have an account in Active Directory, the script will create it based on the information available in the database.
Remove Direct Reports from manager
This script removes Direct Reports from a manager.
Update country code and country name
This script automatically updates the Country Name and Country Code attributes based on a 2-letter country code specified for Country.
Automatically update SIP address
This script automatically sets a user's SIP address the same as the primary SMTP address.
Force Active Directory Synchronization with Microsoft 365
The scripts force Active Directory Synchronization with Microsoft 365 (Office 365).
Verify complexity requirements for user password
The script checks whether a password that is assigned to a user meets Password Complexity Requirements and has the required minimum length.
Enable remote mailbox
The script enables a remote mailbox for a user.
Import new and updated users from CSV file
The scripts are used to update existing and create new user accounts based on the data in the CSV file.
Send notification if number of unused Microsoft 365 licenses falls below limit
The script sends an email notification if the number of unused licenses for any license plan enabled in any of Microsoft 365 (Office 365) tenants falls below a specific limit.
Set ExchangeGuid for user remote mailbox
The script updates ExchangeGuid of a user remote mailbox with the GUID of the mailbox in Exchange Online.
Remove all group memberships for a user account
The scripts remove the target user account from all groups including cloud ones.
Connect to Exchange with PowerShell
The script demonstrates how to connect to Exchange from Adaxes with the help of PowerShell.
Upload user photo to Microsoft 365
The scripts upload a user's photo to Microsoft 365 (Office 365). The photo will appear in client applications, such as Microsoft Outlook Web App, Lync, Skype for Business, and SharePoint.
Output the last time a mailbox received mail
This script outputs the last time when a mailbox received mail.