Scripts repository
Export a report
The script generates a report and exports it to a file.
Execute custom command with name specified in user property
The script executes a custom command for a user. The name of the command is taken from a property of the user.
Execute custom command on users listed in CSV file
The script executes a certain custom command on users listed in a CSV file.
Execute custom command on user with username identical to the target user
The script executes a custom command on a user with the same username as the target user, but located in another AD domain.
Ensure Full Name is unique
This PowerShell script will cancel creation of a new user if another user with the same full name already exists in your Active Directory domain.
Enable/Disable ActiveSync Exchange feature based on group membership
This script enables the ActiveSync feature for Exchange mailboxes who are members of a specific group, and disables the feature for those members who are not part of the group.
Enable user in Microsoft 365 after adding to group
Scripts to enable a user in Microsoft 365 (Office 365) after adding to a group.
Enable remote mailbox
The script enables a remote mailbox for a user.
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.
Enable or disable specific Web interface
The scripts enable or disable the specified Web interface.
Enable MFA with phone number for a user in Microsoft 365
The script enables MFA in Microsoft 365 for the target user with phone number applied.
Enable auto-logon for Web interface
The script enables the auto-logon feature for the specified Web interface.
Disenroll users affected by specific Password Self-Service Policy
The script disenrolls users affected by a specific Password Self-Service Policy.
Disallow users to change permissions on their home folders
The script can be used in business rules, scheduled tasks and custom commands to disallow users to change permissions on their home folders.
Disallow adding groups to other groups
This script can be used to disallow adding groups to other groups.
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.
Disable remote mailbox
The script disables remote mailbox for the user.
Disable mail forwarding if forwarding address matches regular expression
The script disables mail forwarding for an Exchange mailbox if the forwarding address matches a regular expression.
Disable all computers managed by a user
This script disables all computers managed by a user.
Disable accounts specified in DN syntax property
The script disables the accounts specified in a DN syntax property of the target object.