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...

Remove disk quota for user on the drive where the user's home directory is located

This script removes disk quotas for a user on the drive where the user's home directory is located.
February 18, 2021 Views: 2668

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

Delete Remote Desktop Services profile folder

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

Delete/Purge user profile folder

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

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

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

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

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

Remove Direct Reports from manager

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

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

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

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

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

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

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

Update mailbox time zone

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

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

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

Update attributes based on value of another attribute

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

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

Got questions?

Support Questions & Answers