Script repository
Rename SharePoint folder
This script renames a user's SharePoint folder.
Move SharePoint folder
This script moves a user's SharePoint folder to another location within the same SharePoint site.
Delete SharePoint folder
This PowerShell script deletes a user's SharePoint folder.
Copy SharePoint folder
This script copies a SharePoint folder of a user.
Create user folder in SharePoint library
This script creates a folder in a SharePoint document library for a user.
Set Out-of-Office image
This script sets an Out-of-Office image for a user in Exchange.
Grant Full Access to manager for all subordinates' mailboxes
This script provides a manager with full access to mailboxes of all his/her subordinates.
Prevent users from being added to groups in other domains
This script can be used to prevent adding users from a certain AD domain to groups located in other domains.
Disallow adding groups to other groups
This script can be used to disallow adding groups to other groups.
Copy group members
Scripts for coping members from one AD group to another.
Disable all computers managed by a user
This script disables all computers managed by a user.
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.
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.
Delete Remote Desktop Services profile folder
A script to delete the Remote Desktop Services profile of a user
Delete/Purge user profile folder
Scripts to delete or purge a user's profile folder.
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.
Create Remote Desktop Services profile folder
A script to create a Remote Desktop Services profile folder for a user on the file system.
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.
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.
Remove Direct Reports from manager
This script removes Direct Reports from a manager.