Script for Bulk Import of Active Directory Site Links

I wrote this script when I was frequently deploying replication topologies for large geographies. Rather than manually creating them one at a time, I would set everything up in a spreadsheet and then import the spreadsheet. There are a few assumptions made in this script. You may need to modify it a bit if the assumptions don’t work for you. Site links only contain two sites The replication schedule will be copied from another site link The input file is expected to be in tab separated format which you can export from Excel (it’s one of the options under File>Save … Continue reading Script for Bulk Import of Active Directory Site Links

Script for Bulk Import of Active Directory Subnets

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 the input file (TSV). One field I noticed is missing is the … Continue reading Script for Bulk Import of Active Directory Subnets