+ Post New Thread
Page 2 of 2 FirstFirst 12
Results 16 to 26 of 26
Windows Server 2008 R2 Thread, AD User Attributes Bulk Modification in Technical; Originally Posted by JosPhantasmE With "Bulk AD Users" I get this error: "Failure: TsUserEx.dll is required to read/modify terminal services ...
  1. #16
    Jamo's Avatar
    Join Date
    Jan 2009
    Posts
    1,349
    Thank Post
    66
    Thanked 175 Times in 147 Posts
    Rep Power
    60
    Quote Originally Posted by JosPhantasmE View Post
    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."

    Where are you running Bulk AD users from? Try it from your workstation, works on my Windows 7 station

  2. #17

    Join Date
    Dec 2012
    Posts
    10
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    I'm runing it, in my windows 2008 r2 server. This is driving me crazy, any ideas?

  3. #18

    nephilim's Avatar
    Join Date
    Nov 2008
    Location
    Dunstable
    Posts
    11,795
    Thank Post
    1,624
    Thanked 1,878 Times in 1,396 Posts
    Blog Entries
    2
    Rep Power
    422

    Re: AD User Attributes Bulk Modification

    Sadly no easy way to do it.

    Export to excel and do it manually on there (copy and paste perhaps). Failing that, I would have done any number of the above posts. Powershell would have been next.

  4. #19

    Join Date
    Dec 2012
    Posts
    10
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Since there is not easy solution I've been looking for the proper command to fill that field and noting at all... :S

  5. #20


    Join Date
    May 2009
    Posts
    2,945
    Thank Post
    259
    Thanked 776 Times in 590 Posts
    Rep Power
    285
    In powershell? Something like ...

    # Set an ExtensionAttribute
    $dn = (Get-ADUser $sam).DistinguishedName
    $ext = [ADSI]"LDAP://$dn"
    $ext.Put("extensionAttribute", $value)
    $ext.SetInfo()

  6. #21

    Join Date
    Dec 2012
    Posts
    10
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Thanks for your response, honestly I'm not really familiar with powershell, would you explain to me how to do it step by step and what does each line does?
    Thanks and sorry for my ignorance.

  7. #22


    Join Date
    May 2009
    Posts
    2,945
    Thank Post
    259
    Thanked 776 Times in 590 Posts
    Rep Power
    285
    Code:
    $dn = (Get-ADUser $sam).DistinguishedName
    Searches for a user in AD on distinguished name. User to search for is held in $sam variable. Creates a reference to this in $dn.

    Code:
    $ext = [ADSI]"LDAP://$dn"
    Creates an instance of an ADSI object based on the previous search.

    Code:
    $ext.Put("extensionAttribute", $value)
    Puts $value into the named extension attribute.

    Code:
    $ext.SetInfo()
    Writes the change.

    You need to modify the script I pointed out earlier so that it reads a file of account identifier (whatever that might be), searches for that and then if found, modifies the attributes you want. I have almost the code you need but not to hand. I'll try and remember to look it out tonight. If you are totally unfamiliar with Powershell then you will need to do a bit of learning!

  8. #23
    Jamo's Avatar
    Join Date
    Jan 2009
    Posts
    1,349
    Thank Post
    66
    Thanked 175 Times in 147 Posts
    Rep Power
    60
    Quote Originally Posted by JosPhantasmE View Post
    Since there is not easy solution I've been looking for the proper command to fill that field and noting at all... :S
    Use a Windows 7 machine which is joined to the domain, it is far easier!

  9. #24

    Join Date
    Dec 2012
    Posts
    10
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Thanks you and I hope you remember, and yes that's what I want, learn.

  10. #25

    Join Date
    Dec 2012
    Posts
    10
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    And how can that machine access the AD users?

  11. #26


    Join Date
    May 2009
    Posts
    2,945
    Thank Post
    259
    Thanked 776 Times in 590 Posts
    Rep Power
    285
    Well ... unfortunately it seems I assumed too much. I dug out the script and thought I'd better test it first. It deals fine with common items and even anything in the Attributes list. Environment and Session attributes however are coded (along with god knows what else) into a binary blob known as 'userParameters'. I can't find anything to easily read and write the information in that blob, the best I found was thisblock of code, which would be a good start but is obviously not going to be trivial and unfortunately I don't have the time right now to tackle it.

SHARE:
+ Post New Thread
Page 2 of 2 FirstFirst 12

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 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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