O'Reilly logo

Windows PowerShell™ Scripting Guide by Ed Wilson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required