PowerShell Gallery
This PowerShell module has two simple commands that work with the registry to either get or set the primary DNS suffix of a computer.