Scripts: Automation

« All scripts

Powershell24 lines

PowerShell: Create a Distribution List with an Array

This script creates an Exchange Online distribution group and bulk-adds members to it using a PowerShell array and a foreach loop. It’s useful when you need to stand up a new distribution list with a known set of members without clicking through the Exchange admin center one address at a time.

Read »
Powershell142 lines

Get and Set Exchange Online Out of Office Messages with PowerShell

This script gives you an interactive menu to read and write Out of Office (automatic reply) configurations for any mailbox in Exchange Online. Use it when you need to check or update OOO messages on behalf of users, useful for helpdesk staff, onboarding/offboarding workflows, or covering for absent employees.

Read »
Vbscript62 lines

VBScript: Find and Copy PST Files Using WMI

This script scans the local machine for all PST files using a WMI query against `CIM_Datafile`, then copies whatever it finds to a destination folder you specify at runtime. It’s useful when you need to round up Outlook data files before a migration, decommission, or backup sweep — without knowing where users may have stashed them.

Read »
Powershell237 lines

Grant Shared Mailbox Permissions from AD Group Membership

This script assigns Full Access and Send As permissions on shared mailboxes by reading membership from two AD groups. Run it when you want AD groups to be the source of truth for mailbox delegation instead of managing permissions one user at a time.

Read »