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.

Scripts repository

Loading...

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.
February 18, 2021 Views: 2047

Delete Remote Desktop Services profile folder

A script to delete the Remote Desktop Services profile of a user
February 18, 2021 Views: 2890

Delete/Purge user profile folder

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

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: 2711

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: 2760

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: 3466

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: 7410

Remove Direct Reports from manager

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

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: 533

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: 1291

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: 2652

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: 2531

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: 2126

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: 774

Update mailbox time zone

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

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: 3480

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: 1089

Update attributes based on value of another attribute

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

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: 2680

Provision shared and room mailboxes

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

Got questions?

Support Questions & Answers