Script repository
Clean up Google groups
The script deletes Google Apps groups that do not have corresponding AD groups in your Active Directory.
Suspend user in Google Workspace and revoke all licenses
The script suspends the Google Workspace account of a user and revokes all their Google Workspace licenses. You can execute this script in a Run a program or PowerShell action in a business rule, custom command, or scheduled task configured for th...
Activate license key
The script activates the license key for Adaxes.
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.
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.
Enable user in Microsoft 365 after adding to group
Scripts to enable a user in Microsoft 365 (Office 365) after adding to a group.
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.
Remove user with specific username from the unmanaged accounts list
The script removes the user with the specified user principal name from the unmanaged accounts list.
Add users located in particular Organizational Units to unmanaged accounts
The script adds enabled and not expired users located in particular Organizational Units to unmanaged accounts.
Add users that are not members of groups to Unmanaged Accounts
The script adds users who are not members of specific groups to Unmanaged Accounts. When adding users, only direct membership in the groups is taken into account.
Copy multi-valued property values
The script replaces values of a multi-valued property for the specified object with the values of the target object.
Update user properties in resource domain
The script updates properties of a user account in the resource domain based on the values of the corresponding account in the primary domain.
Set manager based on property value
The script finds a user according to the property values mapping and sets the user as the manager of the target account.
Users with upcoming anniversaries
The script generates a report containing users whose yearly anniversary is within the specified period.
Members of groups based on property value
The script generates a report containing members of the groups that have a property with a specific value.
Remove allowed property value from a property pattern
The script removes a value from the list of values allowed for a property by a property pattern and sorts all the values in alphabetical order.
Add members of the target group to the specified one
The script adds users who are members of the target group to the specified one.
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.
Remove spaces from property value and validate it against regular expression
The script removes spaces from a property value, and then validates the result against a regular expression.
Group membership of user subordinates
The script generates a report containing subordinates of the selected user and the groups the groups the subordinates are members of.