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.
Delegate approvals to assistants and secretaries
The script allows delegating the operations a user needs to approve to their assistants or secretaries.
Grant access to user's home folder
The scripts grant full access permissions over the home folder of the target user account.
Remove assistants and secretaries from Approval Requests
The script removes an assistant or secretary of a user from lists of approvers of pending Approval Requests the user can approve.
Remove Direct Reports from manager
This script removes Direct Reports from a manager.
Request users to approve adding AD objects located in OU they manage to group
The script can be used to request approval of an owner of the OU where an object is located before adding it to a group.
Request users to approve adding their managed objects and subordinates to group
The script can be used to request approval of a manager or owner of an AD object before adding it to a group.
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.
Set manager for users in specific OUs
The script finds a user with a specific property value in a specific OU and sets the user as manager of all other accounts in the OU.
Set manager of user as owner of Microsoft 365 groups owned by the user
The script finds Microsoft 365 (Office 365) groups for which the target user is set as owner and sets the user manager as the groups owner.
Set owner of parent Organizational Unit as manager for user
The script sets the owner of the Organizational Unit where a user account is located as the user's manager.
Transfer group ownership from target user to their manager
For all the groups owned (Managed By property) by the target user, the script changes the owner to the manager of the user.
Transfer subordinates from manager to assistant
These 2 PowerShell scripts can be used to transfer a user's direct reports to the user's assistant on a temporary basis.