sync: Auto-sync from ACG-M-L5090 at 2026-03-10 19:11:00
Synced files: - Quote wizard frontend (all components, hooks, types, config) - API updates (config, models, routers, schemas, services) - Client work (bg-builders, gurushow) - Scripts (BGB Lesley termination, CIPP, Datto, migration) - Temp files (Bardach contacts, VWP investigation, misc) - Credentials and session logs - Email service, PHP API, session logs Machine: ACG-M-L5090 Timestamp: 2026-03-10 19:11:00 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
33
scripts/bgb-lesley-exchange.ps1
Normal file
33
scripts/bgb-lesley-exchange.ps1
Normal file
@@ -0,0 +1,33 @@
|
||||
# BG Builders - Lesley Exchange steps (run from interactive PowerShell)
|
||||
# Adds Shelly as delegate + enables litigation hold
|
||||
|
||||
$lesleyUPN = "lesley@bgbuildersllc.com"
|
||||
$shellyUPN = "Shelly@bgbuildersllc.com"
|
||||
|
||||
Write-Output "Connecting to Exchange Online..."
|
||||
Import-Module ExchangeOnlineManagement
|
||||
Connect-ExchangeOnline -UserPrincipalName "sysadmin@bgbuildersllc.com" -ShowBanner:$false
|
||||
Write-Output "[OK] Connected"
|
||||
|
||||
# Add Shelly as delegate
|
||||
Write-Output "`nAdding Shelly as delegate..."
|
||||
Add-MailboxPermission -Identity $lesleyUPN -User $shellyUPN -AccessRights FullAccess -AutoMapping $true
|
||||
Write-Output "[OK] Shelly granted FullAccess"
|
||||
|
||||
Add-RecipientPermission -Identity $lesleyUPN -Trustee $shellyUPN -AccessRights SendAs -Confirm:$false
|
||||
Write-Output "[OK] Shelly granted SendAs"
|
||||
|
||||
# Enable litigation hold
|
||||
Write-Output "`nEnabling litigation hold..."
|
||||
Set-Mailbox -Identity $lesleyUPN -LitigationHoldEnabled $true -LitigationHoldDuration Unlimited
|
||||
Write-Output "[OK] Litigation hold enabled"
|
||||
|
||||
# Verify
|
||||
Write-Output "`nVerifying permissions..."
|
||||
Get-MailboxPermission -Identity $lesleyUPN | Where-Object { $_.User -notlike "NT AUTHORITY*" -and $_.User -notlike "S-1-*" } | Format-Table User,AccessRights -AutoSize
|
||||
|
||||
Write-Output "`nVerifying litigation hold..."
|
||||
Get-Mailbox -Identity $lesleyUPN | Format-List LitigationHoldEnabled,LitigationHoldDuration
|
||||
|
||||
Disconnect-ExchangeOnline -Confirm:$false
|
||||
Write-Output "[OK] Done"
|
||||
Reference in New Issue
Block a user