Script repository
Remove values for deleted objects from a multi-valued property
The script removes records for deleted objects from a multi-valued property.
Force Active Directory replication
The script forces replication in the domain of the object the script is executed for.
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.
Objects located in multiple OUs
The script generates a report containing objects located in the OUs selected in a report parameter.
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.
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.
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.
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.
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.
Users with upcoming anniversaries
The script generates a report containing users whose yearly anniversary is within the specified period.
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.
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.
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.
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.
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.
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.
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.
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/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.
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.