Script repository
Remove invalid business unit membership rules
A script to to remove deleted Active Directory objects from business unit membership rules.
Create groups based on departments of users
The script can be used to add users to groups by department. It adds a user to a group with the same name as the user's department. If a group with the necessary name does not exist it will be created.
Modify Web interface access rules using scripts
A function that demonstrates how to use PowerShell code to specify users and groups that are allowed or denied access to the Web interface.
Export approval requests to CSV
The script exports approval request information to a CSV file once an approval request is approved, denied or cancelled.
Create home folder for AD group
The script creates a folder for an AD group and grants the group full access permissions for the folder.
Check if user home folder is empty
The script returns True if home folder of a user is empty.
Update suffix of the primary SMTP address
The script forms a new primary SMTP address based on the prefix of the current primary address and the domain part specified in a parameter.
Grant target user full access over specific mailbox
The script grants the target user full access over a specific mailbox.
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.
Update group membership based on combination of two property values
The script updates group membership of a user based on a combination of two property values.
Assign Conferencing Policy in Skype for Business On-Premises
The script assigns a Lync Conferencing Policy to a user.
Check if number of direct members exceeds limit
The script can be used to check that the number of members in an AD group does not exceed a certain limit.
Update target object the approval request is meant for
The script updates the object for operation over which the approval request was submitted.
Check the approval request initiator
The script returns true if the specified user or scheduled task is the initiator of the target approval request.
Verify complexity requirements for user password
The script checks whether a password that is assigned to a user meets Password Complexity Requirements and has the required minimum length.
Users recently moved to the specified OU
The script can be used to generate a report that will include user accounts recently moved to the specified OU.
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.
Update user properties based on property pattern
The scripts update properties of the target user with the corresponding default values from property patterns.
Import users to be deprovisioned
The scripts disable or delete user accounts by importing a CSV file.
Add user to Novel eDirectory group
The script adds a user's account located in Novel eDirectory to a eDirectory group.