Skip to content

Instantly share code, notes, and snippets.

View contactbrenton's full-sized avatar
Found on Linkedin "Brenton Johnson"

Brenton Johnson contactbrenton

Found on Linkedin "Brenton Johnson"
  • Uptake Digital
  • Australia
View GitHub Profile
@contactbrenton
contactbrenton / export-outlookmailboxattachments.ps1
Last active July 15, 2026 12:52
Downloads attachments from a Microsoft 365 Outlook mailbox using Microsoft Graph.
#requires -Version 7.0
<#
.SYNOPSIS
Downloads attachments from a Microsoft 365 Outlook mailbox using Microsoft Graph.
.DESCRIPTION
- Reads messages across the primary mailbox, not only the Inbox.
- Accepts date filters only in ISO 8601 format: yyyy-MM-dd, or a full timestamp with Z/offset.
- Parses Graph receivedDateTime values as culture-independent ISO 8601 and uses the local time zone for output folders.
@contactbrenton
contactbrenton / claude-vm-ps-troubleshooting.md
Created July 8, 2026 23:17
Troubleshoot Claude VM Commands

Check if the service is running

Get-Service CoworkVMService

Start the service

Start-Service CoworkVMService

Full restart -- force-kills Claude and restarts the VM in one shot

Stop-Process -Name "Claude" -Force -ErrorAction SilentlyContinue; Start-Service CoworkVMService

Set the service to start automatically on boot

@contactbrenton
contactbrenton / copilot-get-transcript.md
Last active July 1, 2026 09:12
copilot-get-transcripts.md

TASK: Incrementally Archive My Meeting Transcripts as WebVTT + YAML Sidecars

You are an assistant with access to my workplace tools (calendar, online-meeting / transcript service, and local file + zip capabilities). Build and MAINTAIN a growing archive of meeting transcripts: each transcript saved as WebVTT with a matching YAML sidecar, tracked in a CSV ledger so repeat runs only fetch what's new or missing, delivered as a zip snapshot with a README and manifest.

────────────────────────────────────────────────────────

0. CAPABILITY PROBE (do this first — do not skip)

@contactbrenton
contactbrenton / Set-CloudflareSafeBaseline.ps1
Last active May 25, 2026 10:24
do not use account level tokens, only user level tokens work. Designed to improve an organisations Upguard score.
<#
.SYNOPSIS
Applies a safe baseline Cloudflare security configuration for a single zone.
.DESCRIPTION
This script is intentionally conservative. It applies low-risk Cloudflare settings
and a basic response header Transform Rule.
It does not configure:
- HSTS

Prompt: Convert technical training meeting into high-context SOP documents (AI-ready)

Act as an operations and technical documentation specialist for Uptake Digital.

You are converting a Microsoft Teams technical training session into one or more high-quality Standard Operating Procedure (SOP) documents.

This output will be fed into additional AI systems for refinement and expansion, so depth, clarity, and context are critical. Do not optimise for brevity. Optimise for completeness and accuracy.

Do not produce a meeting recap.

@contactbrenton
contactbrenton / force-geo-en-au.ps1
Created January 5, 2026 06:54
An aggressive, new-device (Autopilot / first-boot) AU standardisation script.
#Requires -RunAsAdministrator
$ErrorActionPreference = "Stop"
Write-Output "Starting aggressive Australian language and regional configuration..."
# --- SYSTEM LEVEL ---
Write-Output "Setting system locale to English (Australia)..."
Set-WinSystemLocale -SystemLocale en-AU
Write-Output "System locale set to en-AU (reboot required)."
@contactbrenton
contactbrenton / set-geo-to-en-au.ps1
Last active January 5, 2026 06:54
EXISTING DEVICES: Standardise Windows regional behaviour to English (Australia) with minimal impact.
#Requires -RunAsAdministrator
<#
Purpose:
Standardise Windows regional behaviour to English (Australia) with minimal impact.
Key Commands
Set-WinSystemLocale -SystemLocale en-AU
Set-Culture -CultureInfo en-AU
Set-WinHomeLocation -GeoId 12
@contactbrenton
contactbrenton / dropbox-coauthoring.ps1
Last active December 29, 2025 05:36
How to auto-provision Dropbox as a Place for your team - Source: https://help.dropbox.com/view-edit/admin-guide-co-authoring#Windows.
<#
.SYNOPSIS
Provision (register) Dropbox for Teams as an Office "Place" / storage provider in Microsoft 365 desktop apps for the currently logged-on user.
.MICROSOFT INTUNE DEPLOYMENT SETTINGS
------------------------------------
When deploying this script via Microsoft Intune (Devices > Scripts), configure the following options:
- Platform: Windows
- Target OS versions: Windows 10 and Windows 11
@contactbrenton
contactbrenton / UninstallClassicTeams.ps1
Created June 18, 2025 07:47
Copyright (c) 2024 Microsoft and Contributors
################################################################################
# MIT License
#
# Copyright (c) 2024 Microsoft and Contributors
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
@contactbrenton
contactbrenton / DetectAndUninstallTMA.ps1
Last active June 18, 2025 07:48
Copyright (c) 2024 Microsoft and Contributors
################################################################################
# MIT License
#
# Copyright (c) 2024 Microsoft and Contributors
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is