21 lines
736 B
Markdown
21 lines
736 B
Markdown
# Set-StudentEmail
|
|
|
|
PowerShell script that bulk-assigns email addresses to student accounts in Active Directory.
|
|
|
|
**Repository:** https://gitea.hideawaygaming.com.au/jessikitty/Set-StudentEmail
|
|
|
|
## How it works
|
|
- Scans all users in the student OU (`-OU`)
|
|
- Sets `mail` to `[SamAccountName]@<domain>`, lowercased and trimmed
|
|
- Skips users that already have an address unless `-Force`
|
|
- `-WhatIf` previews without changes
|
|
|
|
## Related
|
|
- `Staff-AD-email-disabler` — the equivalent daily workflow for staff accounts
|
|
|
|
## Session Log
|
|
- 2026-05-15 — Bulk Student Email Assignment Script — Created script; switched from name-based to username-based addresses for uniqueness
|
|
|
|
---
|
|
*Created by: Jess Rogerson (yelling commands at Claude.AI)*
|