Skip to main content
Clone the repository and run your first script in minutes.
Review each script’s comments and parameters before running it. Scripts are designed to be adapted to your environment — read them before executing.
1

Clone the repository

Clone the PowerShell Toolkit from GitHub to your local machine:
git clone https://github.com/bigjoestretch/powershell-toolkit.git
This creates a powershell-toolkit/ directory containing all modules.
2

Choose your module category

Navigate to the folder for your target platform. The repository is organized by technology area:
powershell-toolkit/
├── ActiveDirectory/        # AD user, group, and domain management scripts
├── Azure Runbook/          # Azure Automation runbook scripts
├── AzureAD/               # Azure AD / Entra ID administration
├── Exchange/              # Exchange Server and Exchange Online scripts
├── Intune/                # Microsoft Intune device and policy management
├── MsGraph/               # Microsoft Graph API automation
├── Office365/             # Microsoft 365 tenant administration
├── PowerShell/            # General PowerShell utilities and helpers
├── SharePoint/            # SharePoint Online administration
├── Teams/                 # Microsoft Teams management
├── VMWare/PowerCLI/       # VMware vSphere automation scripts
└── Windows/               # Windows Server administration scripts
See Prerequisites for the modules required by each category.
3

Install required modules

Install the PowerShell modules for your target platform. Run these in an elevated PowerShell session:
# Active Directory (built-in on domain-joined Windows Server; RSAT required on workstations)
Install-WindowsFeature -Name RSAT-AD-PowerShell

# VMware PowerCLI
Install-Module -Name VMware.PowerCLI -Scope CurrentUser

# Microsoft Graph (Microsoft 365 and Azure)
Install-Module -Name Microsoft.Graph -Scope CurrentUser

# Exchange Online
Install-Module -Name ExchangeOnlineManagement -Scope CurrentUser

# SharePoint Online
Install-Module -Name Microsoft.Online.SharePoint.PowerShell -Scope CurrentUser
Install only the modules you need. See Prerequisites for full version and permission requirements.
4

Run your first script

Open an elevated PowerShell session, navigate to the cloned repository, and run a script for your platform.Active Directory — user report:
.\ActiveDirectory\Get-ADUserReport.ps1 -SearchBase "OU=Users,DC=domain,DC=com"
VMware — VM inventory report:
.\VMWare\PowerCLI\Get-VMInventory.ps1 -VCenterServer "vcenter.domain.com"
Exchange Online — mailbox size report:
.\Exchange\Get-MailboxSizeReport.ps1 -ExportPath "C:\Reports"
Replace the parameter values with those appropriate for your environment.
Always test scripts in a non-production or lab environment first. These scripts interact with live infrastructure — validate behavior before running against production systems.

Next steps

Prerequisites

Required PowerShell versions, modules, and permissions for each platform

Active Directory

User, group, and domain management automation

Microsoft 365 & Azure

Exchange, SharePoint, Teams, and Entra ID scripts

VMware & Infrastructure

PowerCLI automation with Entra ID federation support

Build docs developers (and LLMs) love