PowerShell DNS Record Audit: Export All Zone Records to CSV
DNS records accumulate for years and stale records cause resolution failures. This script exports every A, CNAME, MX, and TXT record from all zones to a change-tracked CSV report.
Commands Tips
DNS records accumulate for years and stale records cause resolution failures. This script exports every A, CNAME, MX, and TXT record from all zones to a change-tracked CSV report.
Manual offboarding steps get missed when staff are busy. This script automates the full sequence from AD disable to license revocation with a documented audit trail for compliance.
AD replication failures are silent killers of directory consistency. This script queries every DC for replication partner status, failures, and timestamps to catch problems early.
Confusing terminating and non-terminating errors is the most common PowerShell error handling mistake. This post demystifies the difference and shows how each error type
Patching dozens of servers manually is risky and slow. PSWindowsUpdate with Invoke-Command lets you scan, approve, and install updates across your entire fleet in a maintenance
A well-crafted module manifest makes the difference between a private script collection and a PSGallery-ready module. This guide covers every manifest field that matters for
Graph API returns at most 999 items per page. Scripts that ignore @odata.nextLink silently miss records. This guide shows proper pagination with throttling-aware retry logic built
Opening a new CIM connection for every query is expensive. CimSession objects persist connections, enabling fast batched queries across many servers with significant overhead
Stale RDS sessions consume licenses and memory. This script inventories all active and disconnected sessions across your RDS farm and optionally logs off orphaned sessions.
Guest access in Teams is a governance hot topic. This guide uses Graph SDK to enumerate all guest users, their team memberships, and set tenant-wide guest access policies.