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.

https://gallery.technet.microsoft.com/scriptcenter/05b1d766-25a6-45cd-a0f1-8741ff6c04ec

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

Capture

Tech Wizard

https://techwizard.cloud

https://syscloudpro.com/

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 )

Google photo

You are commenting using your Google 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