Script repository
Generate a unique 6-digit value for AD property
The script generates a unique 6-digit value for the specified Active Directory property.
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.
Check if the property is empty before modification
The script checks the property being modified and returns true if it is currently empty.
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.
Save last activity date in Exchange Online to custom attribute
The script saves last activity date of the target user in Exchange Online to custom attribute date attribute.
Update group membership based on property value
The script adds/removes user from groups based on a property value of the users.
Remove all trustees from Full Access list
The script removes all the trustees from the Full Access list of a mailbox.
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.
Check whether Password never expires account option is updated
The script returns true if the Password never expires account option is being updated for the user.
Disabled managers with enabled direct reports
The script can be used to generate a report that will include disabled user accounts that are managers of enabled user accounts.
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.
Check if Full Access permissions are modified
The script checks whether Full Access permissions are modified for a mailbox.
Adjust group membership based on mapping
The script adds/removes user from groups based on the predefined mapping.
Update report drop-down parameter with Microsoft 365 licenses
The script updates the specified drop-down list parameter with display names and SKU Part Numbers of Microsoft 365 licenses in all the registered tenants.
Add value to drop-down list parameter
The script adds a new value to a specific drop-down list parameter of a report.
Check combination of property values
The script checks whether the value of one property matches the value allowed for another property.
Update group membership with business unit members
The script updates group membership with members of a business unit.
Remove all members from a group and add to another group
The script removes all members from a group and adds them to another group
Grant permissions over a mailbox to members of a group
The script grants Full Access and send As permissions to members of the target group over a specific mailbox.
Deny all pending requests initiated by a user or scheduled task
The script denies all pending requests initiated by a specific user or scheduled task.