Use Powershell to Add Multiple DHCP Scope

Posted on

This article will describe how to create multiple dhcp scope on dhcp server using powershell with csv.

Create CSV file, example :

Name,StartRange,EndRange,SubnetMask,Router
hrd,10.100.11.2,10.100.11.254,255.255.255.0,10.100.11.1
it,10.100.12.2,10.100.12.254,255.255.255.0,10.100.12.1
bod,10.100.13.2,10.100.13.254,255.255.255.0,10.100.13.1

after you created csv file, for example my csv file name is scope.csv.

run this command :

Import-Csv –Path C:\scope.csv | Add-DhcpServerv4Scope -ComputerName SERVERDHCP -State Active

Good luck

 

 

 

Advertisements

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 )

Google+ photo

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

Connecting to %s