+ Post New Thread
Page 1 of 2 12 LastLast
Results 1 to 15 of 26
Windows Server 2008 R2 Thread, AD User Attributes Bulk Modification in Technical; My first post in this forum. I just started working with windows server 2008 r2 and as a apprentice it ...
  1. #1

    Join Date
    Dec 2012
    Posts
    10
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    AD User Attributes Bulk Modification

    My first post in this forum.

    I just started working with windows server 2008 r2 and as a apprentice it have been a pleasure to work with WS2008R2. But, now I came across with this problem where I have over 100 users and I need to modify some attributes of each one of them, to be more specific in the "Sessions" and "Environment" tabs.

    Is just a tedious task to do and I would like to know if there is any tool, script or anything else that can help me get this job done by bulk...?

    Thanks.

  2. #2


    Join Date
    May 2009
    Posts
    2,487
    Thank Post
    198
    Thanked 629 Times in 481 Posts
    Rep Power
    227
    You can do it in Powershell. There's a script here which is a good starting point. You just need to mod it to modify attributes of objects that already exist.

  3. #3
    Marci's Avatar
    Join Date
    Jun 2008
    Location
    Wakefield, West Yorkshire
    Posts
    842
    Thank Post
    76
    Thanked 225 Times in 185 Posts
    Rep Power
    80

  4. #4


    Join Date
    Feb 2007
    Location
    51.405546, -0.510212
    Posts
    8,123
    Thank Post
    203
    Thanked 2,387 Times in 1,767 Posts
    Rep Power
    703
    If you need to clear AD attributes you could use this script as a starting point.

    Code:
    Import-Module ActiveDirectory
    
    $users = Import-Csv -Path C:\Scripts\adtest.csv
                            
    foreach ($user in $users) {
    # Search in specified OU and Update existing attributes
     Get-ADUser -Filter "SamAccountName -eq '$($user.samaccountname)'" -Properties * -SearchBase "cn=Users,DC=manticore,DC=org" |
      Set-ADUser -Clear l, physicalDeliveryOfficeName, division
    }
    ... or this one to modify values.

    Code:
    Import-Module ActiveDirectory
                
    $users = Import-CSV -Path C:\Scripts\adtest.csv
    
    foreach ($user in $users) {
    # Search in specified OU and Update existing attributes
     Get-ADUser -Filter "SamAccountName -eq '$($user.samaccountname)'" -Properties * -SearchBase "cn=Users,DC=manticore,DC=org" |
      Set-ADUser -City $($user.City) -Office $($user.Office) -Division $($user.Division)
    }
    Bulk AD Users is also good.

  5. #5

    Join Date
    Sep 2009
    Location
    North West
    Posts
    233
    Thank Post
    20
    Thanked 17 Times in 16 Posts
    Rep Power
    18
    Another nice little tool is ADModify. I used this when I had to tweak AD attributes for Exchange.

  6. #6

    3s-gtech's Avatar
    Join Date
    Mar 2009
    Location
    Wales
    Posts
    2,486
    Thank Post
    133
    Thanked 490 Times in 438 Posts
    Rep Power
    138
    ADModify.net is ace. USed it to add all sorts of things - main thing was adding the mandatory profile path to 850 users in five minutes!

  7. #7
    Duke5A's Avatar
    Join Date
    Jul 2010
    Posts
    731
    Thank Post
    74
    Thanked 113 Times in 99 Posts
    Blog Entries
    8
    Rep Power
    27
    Use dsquery and pipe its output to dsmod.

    Code:
    dsquery user "ou=2013,ou=grad year,ou=students,ou=users someschool,dc=someschooldistrict,dc=com" | dsmod user -pwdneverexpires no -canchpwd yes
    The above would modify every user in that OU to having their password expire and be given ability to change it.

  8. #8
    Jamo's Avatar
    Join Date
    Jan 2009
    Posts
    1,346
    Thank Post
    66
    Thanked 174 Times in 146 Posts
    Rep Power
    59
    Quote Originally Posted by Duke5A View Post
    Use dsquery and pipe its output to dsmod.

    Code:
    dsquery user "ou=2013,ou=grad year,ou=students,ou=users someschool,dc=someschooldistrict,dc=com" | dsmod user -pwdneverexpires no -canchpwd yes
    The above would modify every user in that OU to having their password expire and be given ability to change it.

    Bulk AD Users is an amazing tool, cant recommend enough

  9. #9

    plexer's Avatar
    Join Date
    Dec 2005
    Location
    Norfolk
    Posts
    12,968
    Thank Post
    587
    Thanked 1,495 Times in 1,341 Posts
    Rep Power
    398
    Quote Originally Posted by 3s-gtech View Post
    ADModify.net is ace. USed it to add all sorts of things - main thing was adding the mandatory profile path to 850 users in five minutes!
    If running 2008 R2 possibly 2008 as well that is one property you can bulk change from ADUC.

    Ben

  10. #10

    Join Date
    Dec 2012
    Posts
    10
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    I have tried "Bulk AD Users", but it have never worked for me. Apparently is only compatible with WS2003 only. Same thing happened with "ADModify.net"
    Last edited by JosPhantasmE; 20th December 2012 at 06:50 PM.

  11. #11

    3s-gtech's Avatar
    Join Date
    Mar 2009
    Location
    Wales
    Posts
    2,486
    Thank Post
    133
    Thanked 490 Times in 438 Posts
    Rep Power
    138
    Doesn't it work? I've used admodify.net with a Server 2008 R2 DC, last time I used it, it was running on 2008 functional level so may not work now on 2008 R2 but should do.

    Much better that it's in ADUC now, common sense really.

  12. #12

    Join Date
    Dec 2012
    Posts
    10
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    With "Bulk AD Users" I get this error: "Failure: TsUserEx.dll is required to read/modify terminal services attributes. You might need to install the Windows 2003 Administrative Tools Pack. (Which is not compatible with windows server 2008 R2)" And then, when I try to use ADmodify.Net all options are grayed out and I got this message at the bottom "Terminal Server and CDOEXM Modifications Disabled."

  13. #13

    Join Date
    Dec 2012
    Posts
    10
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Quote Originally Posted by 3s-gtech View Post
    ADModify.net is ace. USed it to add all sorts of things - main thing was adding the mandatory profile path to 850 users in five minutes!
    What OS where you using?

  14. #14

    3s-gtech's Avatar
    Join Date
    Mar 2009
    Location
    Wales
    Posts
    2,486
    Thank Post
    133
    Thanked 490 Times in 438 Posts
    Rep Power
    138
    2008 R2, but also 2003 in the past.

  15. #15

    Join Date
    Dec 2012
    Posts
    10
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    So there is not an easy way to do this...?

SHARE:
+ Post New Thread
Page 1 of 2 12 LastLast

Similar Threads

  1. Anyone got Dovestones Bulk AD Users 4 working with Exchange 2010
    By Davit2005 in forum Enterprise Software
    Replies: 1
    Last Post: 22nd November 2012, 09:04 AM
  2. Replies: 3
    Last Post: 16th September 2009, 01:22 PM
  3. WiseSoft Bulk AD Users - Beta Testing
    By Wiseman82 in forum Windows
    Replies: 4
    Last Post: 9th December 2008, 01:14 PM
  4. bulk adding users into open dir
    By goodhead in forum Mac
    Replies: 1
    Last Post: 16th May 2008, 02:34 PM
  5. AD User Manager
    By Dos_Box in forum Downloads
    Replies: 0
    Last Post: 27th September 2005, 09:56 PM

Thread Information

Users Browsing this Thread

There are currently 2 users browsing this thread. (1 members and 1 guests)

  1. mb2k01

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •