Scripts repository
Add approvers to approval requests
This script adds an additional approver to approval requests that have not been processed within a predefined time frame.
Add computers from an OU to user workstations
The script adds computers from a specific Organizational Unit to user workstations. Current computers in user workstations will remain unchanged.
Add user to groups specified in a DN syntax property
The script adds a user to the groups specified in a DN syntax property of the user.
All mailbox delegates
The script creates a CSV-formatted report on delegates of mailboxes in all domains managed by Adaxes.
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.
Automatically add a digit to the full name if it is not unique in all domains
Automatically add a digit to the full name if it is not unique in all domains
Automatically add a digit to the username if it is not unique
The scripts can be used to automatically generate a unique username for a user by adding a digit.
Automatically update SIP address
This script automatically sets a user's SIP address the same as the primary SMTP address.
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 e-mail domains
This script checks whether e-mail addresses added to a mailbox belong to accepted e-mail domains in Exchange.
Check Entra account last logon
The script checks whether the last logon date of the related Entra user account equals the current date.
Check if a specific permission is granted to entire organization over user calendar
The script checks if a specific permission is granted to the entire organization over user calendar.
Check if account is inactive in Microsoft Entra ID longer than a period of time
The script returns true if the account is inactive in Azure AD longer than a period of time.
Check mailbox size
The script returns True if mailbox size exceeds a certain size limit.
Check whether automatic replies are enabled
The script checks whether an Exchange mailbox is configured to send automatic replies (OOF messages).
Check whether email and username are unique
The script checks whether the email address and username specified for a new user are unique.
Check whether Employee ID is present in SQL Database
This script checks whether an Employee ID specified for a new user in Active Directory is present in the user's record from an SQL HR database.
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.