Script for Bulk Import of Active Directory Subnets
Posted by: Brian Desmonds Blog,
on 21 Feb 2009 |
View original | Bookmarked: 0 time(s)
I’ve been using this script for years now and was reminded of it by a post on the activedir.org DL the other day. The script does exactly what the name implies – it takes a tab separated input file (supplied as the first argument) and generates Active Directory subnet objects for each line. If the subnet already exists, the associated site and description will be updated. The script targets the forest the user is currently logged in to.
The code is pasted in below, note the format for...