Hi, I need to add data (student) to the department field on selected user accounts (only student accounts). Can I do this using a script that will identify the student group (schoolname_students) and then add the data to all users in these groups or ...??
thx in advance for help with this, l
by RichLec at 2012-09-17 11:38:35
I would think you can use set-aduser from the activedirectory module to set this. You may need to use get-aduser to populate a list and then run that through a for-each block. I had to do something like this recently where i had a attribute in AD for password not required set incorrectly on a whole bunch of old users. The code below is what I used to make this change on all my users. This code might be able to be adjusted and tweaked to work for you particuler issue. I do have a blog post for this script. http://justawinadmin.blogspot.com/2012/ ... ibute.html