Export DHCP Scope Options Value

As Technet Gallery is retiring so moving the code to Git Hub. (click below github download link for this script)

Export DHCP Scope Options Value


Hi Readers,

Sharing a script that we have used to fullfil one of the requirement to extract the DNS scope option(006) values from all scopes on all dhcp servers.

First of all thx to the creator of DHCP powershell module writer.


My script is based on this module & it is included in the above download.

Just extract the script & run the batch file

we have used the value as 6 as we wanted to extract the DNS Scope option.

$idval = “6”  ### DNS Scope Option

Script will show the csv out put as


Tech Wizard



PowerShell Cheat Book

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s