Configuring DNS Server Settings

Rather than working with DNS server settings one at a time, it may be more advantageous to work with the settings in a batch mode. Using the SetDNSServerConfig.ps1 script, you can modify the script to accept any property and any value applicable to the DNS server configuration. The modification also allows you to configure multiple parameters at the same time.

The script begins with a param statement, allowing you to supply values to the script at runtime. The -computer parameter lets you target a local or a remote server. If you choose to run the script locally, because there is a set default value, no additional configuration is required. If you must operate remotely, you'll need to supply the -computer parameter ...

Get Windows PowerShell™ Scripting Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.