Scripts & Automation
Scripts & Automation
This page documents the lab setup, automation, validation steps, and artifacts for Scripts & Automation.
Runbook
- Prerequisites
- Connect Modules (PowerShell/Graph)
- Execute Scripts
- Validate
- Document Artifacts
- Rollback Plan
PowerShell (Identity)
Connect-MgGraph -Scopes "User.ReadWrite.All","Group.ReadWrite.All","Directory.ReadWrite.All"
# ./scripts/graph/Create-LabUsersAndGroups.ps1 -Domain jeremyfontenot.online -SkuPartNumber ENTERPRISEPACK
PowerShell (Exchange Online)
Connect-ExchangeOnline
# ./scripts/exchange/Exchange-Basics.ps1
PowerShell (Teams)
Connect-MicrosoftTeams
# ./scripts/teams/Provision-LabTeam.ps1 -TeamName "LAB-Engineering-Team" -OwnerUPN [email protected]
PowerShell (SharePoint)
Connect-PnPOnline -Url "https://jeremyfontenot.sharepoint.com/sites/M365-Documentation" -Interactive
# ./scripts/sharepoint/Export-SPOSiteTemplate.ps1 -SiteUrl https://jeremyfontenot.sharepoint.com/sites/M365-Documentation
Artifacts
- Reports (CSV/HTML/PDF)
- Screenshots (annotated)
- Change records
- Scripts and configs