SCRIPTS & AUTOMATION

A toolkit for everyday operations.

Browse the complete collection of scripts, examples, and practical infrastructure tools.

THE SCRIPT LIBRARY

Find your next shortcut.

56 scripts to explore

56 scripts

Automation scripts and examples from Joseph Nakhle
TechnologyCollectionScript / toolWhat it does
ProxmoxCheck ZFS Cluster Health with Uptime Kuma AlertsBashScript to check a zfs cluster health and send alerts to UptimeKuma.
SharePointGet File PermissionsPowerShellUse PnP PowerShell to get file permissions in a site.
IPMIIPMI Health Checks and reporting to Uptime KumaBashScript to do a health check on IPMI and send alerts to UptimeKuma.
ProxmoxBackup VMs Using RBDBashScript to backup VMs using RBD.
TeamsBulk Add MembersPowerShellUse PowerShell to add members to Teams.
Other toolsLinux – Rsync Backup with Rotation (Bash)BashCreate rsync backups and rotate retained copies.
Other toolsM365 – License Assignment Audit (PowerShell)PowerShellReview Microsoft 365 license assignments.
Other toolsDocker – Compose Volume Backup (Bash)BashBack up the volumes used by Docker Compose services.
ProxmoxBackup Conf FilesBashScript to backup conf files.
ProxmoxBackup VMs Using VZDUMP on Local StorageBashScript to backup VMs using VZDUMP on Local Storage.
ProxmoxBackup VMs Using VZDUMP on ZFSBashScript to backup VMs using VZDUMP on ZFS.
SharePointBulk Add MembersPowerShellUse PnP PowerShell to Add members in bulk using a CSV file.
TeamsBulk Add Phone Numbers and Routing PolicyPowerShellUse PowerShell to add phone numbers and routing policy to users.
ProxmoxBulk Auto Start VMsBashScript to Auto Start VMs in case they are turned off by users.
SharePointBulk Check Files CountPowerShellUse PnP PowerShell to check file count in bulk using a CSV file.
SharePointBulk Check Files VersionsPowerShellUse PnP PowerShell to check file versions in bulk using a CSV file.
SharePointBulk Check if sites existPowerShellUse PnP PowerShell to check if sites exist in bulk using a CSV file.
TeamsBulk Get Phone Numbers and Routing PolicyPowerShellUse PowerShell to get phone numbers and routing policy to users.
SharePointBulk Get Site InfoPowerShellUse PowerShell to get sites info.
SharePointBulk Remove MembersPowerShellUse PnP PowerShell to Remove members in bulk using a CSV file.
TeamsBulk Remove MembersPowerShellUse PowerShell to remove members from Teams.
SharePointBulk Remove OwnersPowerShellUse PnP PowerShell to Remove owners in bulk using a CSV file.
SharePointBulk Sites IDsPowerShellUse PnP PowerShell to get site IDs.
ProxmoxCheck CEPH Cluster Health with Uptime Kuma AlertsBashScript to check a ceph cluster health and send alerts to UptimeKuma.
Other toolsDocker – Cleanup Dangling Resources (Bash)BashClean up dangling Docker resources.
SharePointGet Site Storage MetricsPowerShellUse PnP PowerShell to get sitess storage metrics.
Other toolsK8s – Cluster Health Summary (Bash)BashGet a quick health summary of a Kubernetes cluster.
Other toolsK8s – Namespace Manifests Backup (Bash)BashBack up resource manifests from a Kubernetes namespace.
Other toolsK8s – Restart CrashLoopBackOff Pods (Bash)BashRestart Kubernetes pods in CrashLoopBackOff.
Other toolsK8s – Rolling Restart All Deployments (Bash)BashPerform rolling restarts across Kubernetes deployments.
Other toolsLinux – Certbot Renew Hook (Bash)BashRun a hook after Certbot certificate renewal.
Other toolsLinux – Disk Usage Report (Bash)BashSummarize filesystem usage and highlight storage consumption.
Other toolsLinux – Fail2ban Quick Setup (Bash)BashSet up Fail2ban for a Linux environment.
Other toolsLinux – iptables Backup & Restore (Bash)BashSave and restore Linux iptables rules.
Other toolsLinux – Nginx Log Analyzer (Bash)BashSummarize activity in Nginx access logs.
Other toolsLinux – Rsync Pull Mirror (Bash)BashPull a remote directory into a local rsync mirror.
Other toolsLinux – systemd Service Watcher (Bash)BashWatch systemd service health.
Other toolsLinux – ulimit Hardening (Bash)BashConfigure Linux resource limits.
Other toolsLinux – User & Sudoers Audit (Bash)BashReview Linux users and sudo access.
Other toolsM365 – Azure AD Inactive Users (PowerShell)PowerShellFind inactive Microsoft Entra ID users for an access review.
Other toolsM365 – Exchange Mailbox Sizes (PowerShell)PowerShellReport Exchange mailbox sizes for capacity planning.
Other toolsM365 – OneDrive Quota Report (PowerShell)PowerShellReport OneDrive storage quotas.
Other toolsM365 – Remove Anonymous Links (PowerShell)PowerShellRemove anonymous sharing links in Microsoft 365.
TeamsM365 – Teams Guest Access Audit (PowerShell)PowerShellReview guest access in Microsoft Teams.
SQL & databasesMySQL – Consistency Check (Bash)BashRun MySQL consistency checks.
SQL & databasesMySQL – Slow Log Analyzer (Python)PythonAnalyze MySQL slow-query logs with Python.
SQL & databasesPostgres – Backup & Rotate (Bash)BashBack up PostgreSQL databases and rotate saved copies.
SQL & databasesPostgres – Index Bloat Report (SQL)SQLInspect PostgreSQL index bloat.
Other toolsPython – S3 Bucket Backup (boto3)PythonBack up an S3 bucket with Python and boto3.
Other toolsPython – Simple Uptime CheckerPythonCheck endpoint availability with a small Python script.
Other toolsPython – Tail & Ship Logs to HTTPPythonTail a log file and send entries to an HTTP endpoint.
ProxmoxReplicate VMs to a DR site Using RBDBashScript to replicate VMs to a DR site using RBD Snapshots.
SQL & databasesSend Alerts for Offline DBsBashScript to send an alert when a DB is offline.
SQL & databasesSend Alerts for Recovery Pending DBsBashScript to send an alert when a DB is in recovery pending mode.
SQL & databasesSend Alerts for Restoring DBsBashScript to send an alert when a DB is in restoring mode.
SQL & databasesSQL Server – DB Space Report (T-SQL)SQLReport SQL Server database space usage.
Showing all 56 scripts