Resetting bulk Active Directory User Attributes (Properties) using PowerShell

Home > Videos > Windows Server > Resetting bulk Active Directory User Attributes (Properties) using PowerShell

Resetting bulk Active Directory User Attributes (Properties) using PowerShell

Like This Video 0 558 Rick Trader
Added by August 23, 2015

See our class schedule for complete Course Schedule Training.

Classes are held in Phoenix, AZ and can be attended online from anywhere in the world with RemoteLive™.

Instructor: Rick Trader

Using PowerShell to Bulk Reset Active Directory User Properties

Video Transcript:

Recently, I imported a number of users into my Active Directory Database, using a comma delimited file. As a result of importing the Users, the person who created the comma delimited file had accidentally misspelled the Users’ Department.

By looking at the department, they should be in the Propulsion Department but they misspell “Propulsion.” I have in this case, 50 users in this OU. I could change one user at a time or I could do a select all the users, right-click, Properties,

001-Resetting-bulk-Active-Directory-Usser-Attributes

And then change their Organization.

002-graphical-Resetting-bulk-Active-Directory-Usser-Attributes

But I’m going to change their User Accounts using PowerShell.

Let’s get started.

If I come into my PowerShell prompt, the first thing I want to do is make sure that I’m going to grab the right users.

I’m going to “get‑aduser

003-PowerShell-Resetting-bulk-Active-Directory-Usser-Attributes

And I’m going to tell it, I want to do a Filter on enabled accounts = True.

004-PowerShell-Resetting-bulk-Active-Directory-Usser-Attributes

I also want to do a SearchBase on User Accounts that are in the OU=Propulsion, the domain container=USSHQ, and the domain container = Local.

005-PowerShell-Resetting-bulk-Active-Directory-Usser-Attributes

Now I go grab those users, there’s the 50 user objects that are in the container called “Propulsion”

006-PowerShell-User-Containing-Resetting-bulk-Active-Directory-Usser-Attributes

And if you noticed, if I come down, if I look in here, it shows me the users are in here, but notice that I don’t see their actual attribute for the department.

I could actually go on do a search, strictly on the department with a “Select Object.” But I already showed that in the graphical, so I’m just going to go ahead and change their department.

So I’ll do a “set‑aduser“, and do a “‑department” that is one of my attributes.

007-PowerShell-User-Containing-Resetting-bulk-Active-Directory-Usser-Attributes

And I want to set the department to “Propulsion” and hit enter.

No news is good news.

008-PowerShell-User-Containing-Resetting-bulk-Active-Directory-Usser-Attributes

I minimize my PowerShell and refresh my Active Directory container.

009-graphical-Resetting-bulk-Active-Directory-Usser-Attributes

I’ll go back and look at any of these users.

Notice I go to the “Organization” their department has been changed to “Propulsion.”

010-graphical-Resetting-bulk-Active-Directory-Usser-Attributes

I just changed 50 User Object’s Department, in a matter of a couple of minutes. Imagine if I had to do more than just one line item. I could set any attribute, that’s on that User Object or multiple User Objects in a matter of minutes, instead of spending hours right clicking, and changing those individual users.

Hope this helps you change user attributes in your environment, and until next time, ride safe.
Rick Trader
Windows Server Instructor – Interface Technical Training
Phoenix, AZ

Videos You May Like

A Simple Introduction to Cisco CML2

0 3896 0

Mark Jacob, Cisco Instructor, presents an introduction to Cisco Modeling Labs 2.0 or CML2.0, an upgrade to Cisco’s VIRL Personal Edition. Mark demonstrates Terminal Emulator access to console, as well as console access from within the CML2.0 product. Hello, I’m Mark Jacob, a Cisco Instructor and Network Instructor at Interface Technical Training. I’ve been using … Continue reading A Simple Introduction to Cisco CML2

Creating Dynamic DNS in Network Environments

0 642 1

This content is from our CompTIA Network + Video Certification Training Course. Start training today! In this video, CompTIA Network + instructor Rick Trader teaches how to create Dynamic DNS zones in Network Environments. Video Transcription: Now that we’ve installed DNS, we’ve created our DNS zones, the next step is now, how do we produce those … Continue reading Creating Dynamic DNS in Network Environments

Cable Testers and How to Use them in Network Environments

0 727 1

This content is from our CompTIA Network + Video Certification Training Course. Start training today! In this video, CompTIA Network + instructor Rick Trader demonstrates how to use cable testers in network environments. Let’s look at some tools that we can use to test our different cables in our environment. Cable Testers Properly Wired Connectivity … Continue reading Cable Testers and How to Use them in Network Environments

Write a Comment

Share your thoughts...

Please fill out the comment form below to post a reply.