We use cookies to improve your experience.
By your continued use of this site you accept such use.
For more details please see our privacy policy and cookies policy.

Script repository

Loading...

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.
October 15, 2015 Views: 3029

Check whether user performing an operation manages the OU where target object is located

The script checks whether the user performing an operation manages the OU where the target object is located.
January 15, 2016 Views: 2190

Provision shared and room mailboxes

These scripts show how to provision resource mailboxes in Exchange On-Premises.
May 31, 2016 Views: 6261

Check whether automatic replies are enabled

The script checks whether an Exchange mailbox is configured to send automatic replies (OOF messages).
June 16, 2017 Views: 2944

Update attributes based on value of another attribute

The script updates attributes based on the value of another attribute.
September 17, 2019 Views: 3033

Send mail to parent container owner

The script sends an email notification to the owner of the container where the target object is located.
September 18, 2019 Views: 1326

Copy folder structure with permissions

The script copies all the items from the source folder to the target folder keeping the permissions.
September 18, 2019 Views: 4124

Update mailbox time zone

The script updates the time zone of a mailbox in on-premise Exchange.
September 18, 2019 Views: 981

Send notification to everybody who has Full Access to mailbox

The script sends an email notification to everybody who has Full Access to the target mailbox.
October 29, 2019 Views: 947

Check whether Microsoft 365 user account is blocked

The script check whether a user is blocked from signing in to Microsoft 365 (Office 365).
April 28, 2020 Views: 2421

Cancel user creation if there are no available Microsoft 365 licenses

The script cancels creation of a new user if there are no available Microsoft 365 (Office 365) licenses in the specified plans of the tenant associated with the user.
June 23, 2020 Views: 2829

Copy group memberships from template based on property values

The script copies group memberships from a template user to the current user. The template is selected based on the value of the specified properties. Original memberships of the user are removed.
October 12, 2020 Views: 2969

Check if number of unused Microsoft 365 licenses is below limit

The script returns true if the number of Microsoft 365 licenses is below limit.
December 15, 2020 Views: 1733

Update user picture in resource domain

The script updates a user picture in the resource domain after it is changed in the primary domain.
February 16, 2021 Views: 688

Remove Direct Reports from manager

This script removes Direct Reports from a manager.
February 18, 2021 Views: 7909

Update country code and country name

This script automatically updates the Country Name and Country Code attributes based on a 2-letter country code specified for Country.
February 18, 2021 Views: 8153

Check whether Employee ID is present in SQL Database

This script checks whether an Employee ID specified for a new user in Active Directory is present in the user's record from an SQL HR database.
February 18, 2021 Views: 3803

Create Remote Desktop Services profile folder

A script to create a Remote Desktop Services profile folder for a user on the file system.
February 18, 2021 Views: 3007

Move large home folders

The built-in 'Move Home Directory' action can fail on large directories if the operation takes more than 10 minutes to complete. This PowerShell code works around this issue by creating a separate process to move a home folder.
February 18, 2021 Views: 2938

Delete/Purge user profile folder

Scripts to delete or purge a user's profile folder.
February 18, 2021 Views: 4175

Got questions?

Support Questions & Answers