Coding & Automation
Scripts, code snippets, and automation references for IT professionals.
Bash: Monitor Disk Usage and Send Email Alert
A lightweight Bash script to monitor disk usage on Linux servers and send an email alert when any partition exceeds a configurable threshold.
Bulk Rename AD Computers by Serial Number
Automate the renaming of Active Directory computer objects using their hardware serial numbers with this production-ready PowerShell script.
Enable BitLocker & Backup Key to Entra ID
A production-ready PowerShell script to enable BitLocker encryption on a Windows 11 device and automatically back up the recovery key to Microsoft Entra ID (formerly Azure AD).
PowerShell: Export All Office 365 Mailbox Sizes to CSV
A script to export every mailbox size, item count, and archive size in your Microsoft 365 tenant to a CSV file for capacity planning and reporting.
Get All AD Devices and Last Login Dates
A PowerShell script to export every computer in Active Directory with its last logon date, operating system, and status — essential for cleanup, compliance, and licence management.
PowerShell: Automate AD & M365 User Provisioning
A comprehensive PowerShell script to create new users in Active Directory and assign Microsoft 365 licences, mailboxes, and group memberships in one step.
Python for Beginners: A Complete Getting Started Guide
Learn Python from scratch. This beginner-friendly guide covers installation, core concepts, data types, control flow, functions, file handling, and your first real project — all with practical examples.
Python for Excel: Automate Spreadsheets with Python
Learn how to read, write, analyse, and automate Excel spreadsheets with Python. Covers openpyxl for Excel files and pandas for data analysis, with practical copy-paste examples.
