Giter Club home page Giter Club logo

bulk-update-ad-csv's Introduction

Project Description
PowerShell script that updates AD objects based on a CSV schema.

First, a big thank you to Cary Landers and Nuno Mota.

This effort was adapted from:

  1. https://companydirectory.codeplex.com/ by Cary Landers
  2. https://gallery.technet.microsoft.com/scriptcenter/f7b246a4-95a2-4408-b1a1-73b53003883c by Nuno Mota

This script does the following:

  • Iterates through records in a CSV
  • For each record, looks up the AD object's distinguishedName based on the AccountName in the CSV
  • Updates the AD object based on the other properties specified in the CSV

The project provides both the PowerShell script and a sample CSV.  To test the script as-is, all you need to do is create three user objects in AD as testuser1, testuser2, and testuser3 (view the CSV in Excel and refer to the first column).

Once you've created those three users, you should be able to run the script and be able to open the attribute editor for testuser1, testuser2, and testuser3 to see their updated values.

Before running the script, we see that testuser3 has no address, city, state, or zip.

Before running the script

Here's an amazing capture of what happens when you run the script.

Running the script

Finally, we check and see that testuser3 now lives somewhere!

After the script has been run

Questions and comments are welcome:  [email protected].

bulk-update-ad-csv's People

Contributors

skaggej avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.