This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
.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. |