GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - sufideen/PowerShell_training: PowerShell automation scripts for M365 Exchange Online administration. Project 1: Calendar sharing with exec exclusions, WhatIf simulation, guardrails, logging, and monthly scheduling.

BranchesTags
Open more actions menu

Latest commit

 

History

2 Commits
2 Commits

Folders and files

NameName
Last commit message
Last commit date
docs
docs
 
 
scripts
scripts
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 
Set-CalendarSharing.ps1
Set-CalendarSharing.ps1
 
 
Set-CalendarSharing_README.md
Set-CalendarSharing_README.md
 
 
Training_Guide_CalendarSharing.md
Training_Guide_CalendarSharing.md
 
 

Repository files navigation

PowerShell Training — Exchange Online Calendar Sharing Automation

Project 1: Set-CalendarSharing.ps1

Automates calendar permission management across all Microsoft 365 mailboxes via Exchange Online PowerShell. Excludes a configurable group of executives. Designed for monthly scheduled production runs.

Features

  • Bulk calendar permission setting with a single command
  • Executive exclusion list (CEO + named execs)
  • -WhatIf simulation mode — preview all changes before applying
  • Per-mailbox try/catch — one failure does not stop the run
  • trap {} guardrail — catches unexpected crashes, emails admin, exits cleanly
  • Post-run verification — re-reads permissions to confirm they applied
  • Exclusion audit — confirms exec calendars were untouched
  • Timestamped .log file and .csv report per run
  • Email notification on success, partial failure, or crash
  • Production-ready: supports Certificate-Based Authentication (CBA) for unattended scheduled runs

Repository Structure

PowerShell_training/
├── README.md                          ← This file
├── scripts/
│   └── Set-CalendarSharing.ps1        ← Main production script
├── docs/
│   ├── Training_Guide_CalendarSharing.md   ← VAK training guide
│   └── Set-CalendarSharing_README.md       ← Quick-start usage guide
├── Logs/                              ← Runtime logs (git-ignored)
└── .gitignore

Quick Start

# 1. Simulate (no changes)
.\scripts\Set-CalendarSharing.ps1 -WhatIf

# 2. Live run with email notification
.\scripts\Set-CalendarSharing.ps1 -NotifyEmail "[email protected]"

# 3. Custom permission level
.\scripts\Set-CalendarSharing.ps1 -SharingPermission "AvailabilityOnly"

Prerequisites

Requirement Details
PowerShell 5.1 or 7+
Module ExchangeOnlineManagement 3.x
Role Exchange Administrator or Global Administrator
Auth (scheduled) Certificate-Based Authentication — see training guide Section 8

Documentation

  • Training Guide (VAK — Intermediate/Advanced)
  • Quick-Start README

Official References

  • Exchange Online PowerShell — Microsoft Learn
  • App-only authentication for unattended scripts
  • Add-MailboxFolderPermission
  • Set-MailboxFolderPermission
  • AZ-040T00: Automate Administration with PowerShell

About

PowerShell automation scripts for M365 Exchange Online administration. Project 1: Calendar sharing with exec exclusions, WhatIf simulation, guardrails, logging, and monthly scheduling.

Resources

Readme
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.