ZEDA.nl

ZEDA.nl

Tips & Tweaks for Windows

User Rating:  / 2
PoorBest 

Script add location in AD and DHCP

In a previous post I discussed best pratice for having each location in Active Directory Sites and Services. To create new sites easily, I developed a script that creates a site and subnet in the AD and also creates a DHCP Scope for the new location.

For 'daily operations' I use a GUI .hta script that gives me a userfriendly interface. This script however does nothing more than execute a batchfile which performs the tasks.

AddLocation [Name] [subnet] [subnetmask] [DHCP Start] [DHCP End] [Gateway]

You can run this batchfile from the commandline directly when adding larger numbers of locations, for example for migration purposes.

Download script: AddLocation.zip

TIP: See also AD Site to Location

ZEDA.nl

Tips & Tweaks for Windows

Most read:

Ad:

Tools:

EU e-Privacy Directive

This site uses cookies for analytics, advertising and functional purposes. Please accept or decline the use of coockies on this site.

You have declined cookies. This decision can be reversed.

You have allowed cookies to be placed on your computer. This decision can be reversed.