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...

Advertisement
Free Agile Project Management Tool from Telerik
TeamPulse Community Edition helps your team effectively capture requirements, manage project plans, assign and track work, and most importantly, be continually connected with each other.
Category: Data | Other Posts: View all posts by this blogger | Report as irrelevant | View bloggers stats | Views: 2584 | Hits: 86

Similar Posts

  • Script for Bulk Import of Active Directory Site Links more
  • Getting Continuous Integration Working With CodePlex: Part III more
  • Utilizing the Microsoft AJAX Framework and ClientAPI to Develop Rich Modules: Part II more
  • Very Simple .NET Thumbnail Creation Code more
  • Variable Scoping in Anonymous Delegates in C# more
  • Silverlight Browser Integration aka HTML Bridge more
  • Embedding ASP.NET Server Variables in Client JavaScript more
  • Enable the back button in ASPxGridView - Experimental more
  • DarkRoom Macros for Microsoft Word more
  • Apache and Script Mapping more

News Categories

.NET | Agile | Ajax | Architecture | ASP.NET | BizTalk | C# | Certification | Data | DataGrid | DataSet | Debugger | DotNetNuke | Events | GridView | IIS | Indigo | JavaScript | Mobile | Mono | Patterns and Practices | Performance | Podcast | Refactor | Regex | Security | Sharepoint | Silverlight | Smart Client Applications | Software | SQL | VB.NET | Visual Studio | W3 | WCF | WinFx | WPF | WSE | XAML | XLinq | XML | XSD