Script repository
Delete SharePoint folder
This PowerShell script deletes a user's SharePoint folder.
Delete/Purge user profile folder
Scripts to delete or purge a user's profile folder.
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.
Deny pending Approval Requests to perform operations on object
This script denies pending Approval Requests to perform operations on an Active Directory object.
Disable accounts specified in DN syntax property
The script disables the accounts specified in a DN syntax property of the target object.
Disable all computers managed by a user
This script disables all computers managed by a 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 remote mailbox
The script disables remote mailbox 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.
Disallow adding groups to other groups
This script can be used to disallow adding groups to other groups.
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.
Disenroll users affected by specific Password Self-Service Policy
The script disenrolls users affected by a specific Password Self-Service Policy.
Enable auto-logon for Web interface
The script enables the auto-logon feature for 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 or disable specific Web interface
The scripts enable or disable the specified Web interface.
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 remote mailbox
The script enables a remote mailbox for a user.
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/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.
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.