+ Post New Thread
Results 1 to 2 of 2
Scripts Thread, ResetAccountsAdminSDHolder.vbs in Coding and Web Development; Hi, Can someone offer some help with modifying the above script? I need to address the issue addressed in KB817433 ...
  1. #1
    meastaugh1's Avatar
    Join Date
    Jul 2006
    Location
    London/Hertfordshire
    Posts
    889
    Thank Post
    69
    Thanked 85 Times in 70 Posts
    Rep Power
    32

    ResetAccountsAdminSDHolder.vbs

    Hi,

    Can someone offer some help with modifying the above script? I need to address the issue addressed in KB817433. However, I'd rather only execute it against a certain OU and it's child OUs. My attempts so far have resulted the script in returning 0 accounts found.

    many thanks
    Mike

  2. #2

    Join Date
    Jul 2005
    Location
    Rugby
    Posts
    432
    Thank Post
    17
    Thanked 66 Times in 61 Posts
    Rep Power
    35

    Re: ResetAccountsAdminSDHolder.vbs

    i would change the line
    oCmd.CommandText = "SELECT ADsPath FROM 'LDAP://" & sPDC & "/" & sDomain & "' WHERE objectCategory='person' and objectClass = 'user' AND adminCount = 1"

    to read

    oCmd.CommandText = "SELECT ADsPath FROM 'LDAP://" & sPDC & "/" & sDomain & "/ou=SearchOU,dc=your,dc=domain" & "' WHERE objectCategory='person' and objectClass = 'user' AND adminCount = 1"

    Matt

SHARE:
+ Post New Thread

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
  •