Skip to content

Instantly share code, notes, and snippets.

View msquibb's full-sized avatar

Mike Squibb msquibb

View GitHub Profile
<#
.SYNOPSIS
Adds or updates CNAME records in Windows DNS (single or bulk from CSV) with logging and safety checks.
.DESCRIPTION
- Idempotent: skips if CNAME already points to the same target.
- Optional in-place update when an existing CNAME points elsewhere (-UpdateExisting).
- Bulk mode via CSV input.
- Logging to a file, plus support for -WhatIf and -Confirm.