From 740351285167c1420d16ee89252827536e92a121 Mon Sep 17 00:00:00 2001 From: jessikitty Date: Wed, 23 Sep 2026 14:19:29 +1000 Subject: [PATCH] Add project overview with session log --- .claude-context/00-overview.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .claude-context/00-overview.md diff --git a/.claude-context/00-overview.md b/.claude-context/00-overview.md new file mode 100644 index 0000000..4e49ba7 --- /dev/null +++ b/.claude-context/00-overview.md @@ -0,0 +1,16 @@ +# ad-managed-by-logon — Project Overview + +## Purpose +PowerShell GPO logon script that provides two-way user/computer tracking in Active Directory: +- Computer object "Managed By" tab -> last logged-in user +- User object "Notes" field -> last computer used + +## Architecture +Single self-contained PowerShell script (`Set-ComputerManagedBy.ps1`) deployed via GPO User Logon Script to NETLOGON share. No external dependencies — uses AD PowerShell module when available, falls back to ADSI/DirectorySearcher when RSAT is not installed. + +## Key Files +- `Set-ComputerManagedBy.ps1` — the logon script +- `README.md` — deployment and delegation instructions + +## Session Log +- 2026-09-23 — AD Managed-By Logon Script — Initial build, added Notes field, fixed Unicode encoding for ISE, split error handling so ManagedBy and Notes failures are independent