Skip to main content

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.

5 min readMar 29, 2026Bash, Linux, Monitoring, Automation, DevOps

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.

4 min readMar 29, 2026PowerShell, Active Directory, Automation, Windows Server

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).

5 min readMar 29, 2026PowerShell, BitLocker, Microsoft Entra ID, Encryption, Automation

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.

5 min readMar 29, 2026PowerShell, Exchange Online, Microsoft 365, 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.

5 min readMar 29, 2026PowerShell, Active Directory, Reporting, Automation

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.

7 min readMar 29, 2026PowerShell, Active Directory, Microsoft 365, Automation, User Provisioning

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.

14 min readMar 29, 2026Python, Beginners, Programming, Learning

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.

12 min readMar 29, 2026Python, Excel, Automation, Pandas, openpyxl