Querying msDS-User-Account-Control-Computed in ADLDS under Windows 2008 R2

답변됨 Querying msDS-User-Account-Control-Computed in ADLDS under Windows 2008 R2

  • 2012년 3월 1일 목요일 오후 3:02
     
     

    I am trying to query msDS-User-Account-Control-Computed with the following code:

    Set objUser = GetObject _
        ("LDAP://host.domain.local/CN=John Doe,OU=Users,O=MyOrg,C=ca")
    Wscript.Echo "User account control computed: " & objUser.[msDS-User-Account-Control-Computed]

    which returns blank.

    Any insight into this? Any idea as to what might be missing for this to be computed and returned?

    Thanks!


    • 편집됨 Ritmo2k 2012년 3월 1일 목요일 오후 3:02
    •  

모든 응답

  • 2012년 3월 1일 목요일 오후 7:02
     
     
  • 2012년 3월 1일 목요일 오후 7:25
     
     
    Exactly where I got the code... The brackets aren't the issue...
  • 2012년 3월 1일 목요일 오후 10:22
     
     

    It looks like you are using a wrong DN – "LDAP://host.domain.local/CN=John Doe,OU=Users,O=MyOrg,C=ca"  I don’t believe that is a valid DN.

    Get the correct DN and update filter.

    Also, since it is more related to a scripting question, you may want to post this question in the scripting forum.

    http://social.technet.microsoft.com/Forums/en-US/ITCG/threads


    Santhosh Sivarajan | Houston, TX
    http://www.sivarajan.com/

    FaceBook Twitter LinkedIn SS Tech Forum

    This posting is provided AS IS with no warranties,and confers no rights.

  • 2012년 3월 1일 목요일 오후 11:07
     
     
    Actually the DN is right.
    It looks like only the MS-adamschemaw2k*.LDF were not installed and those are the only schema defs that contain this attr.

    How can I add this schema file to an existing partition?

    Thanks!
  • 2012년 3월 2일 금요일 오전 2:31
    중재자
     
     
     

    Hi,

     

    As Santhosh Sivarajan mentioned that this issue is related to scripting. For scripting issue, the best resource is scripting forum.

     

    Based on the current situation, you’d better submit a new question to scripting forum for further assistance. In this way, your issue can be resolved effectively.

     

    The Official Scripting Guys Forum!

    http://social.technet.microsoft.com/Forums/en-US/ITCG/threads

    Thanks for your understanding!

     

    Regards,

    Arthur Li

    TechNet Subscriber Support

    If you are TechNet Subscription user and have any feedback on our support quality, please send your feedback here.


    Arthur Li

    TechNet Community Support

  • 2012년 3월 6일 화요일 오전 3:23
    중재자
     
     
     Hi,

     

    I would like to confirm what is the current situation? If there is anything that I can do for you, please do not hesitate to let me know, and I will be happy to help.

    Regards,

    Arthur Li

    TechNet Subscriber Support

    If you are TechNet Subscription user and have any feedback on our support quality, please send your feedback here.


    Arthur Li

    TechNet Community Support

  • 2012년 3월 12일 월요일 오후 1:30
     
     답변됨

    As indicated by me above, the DN is right.
    Only the MS-adamschemaw2k*.LDF schema defs contain this attr and it only usefully populates when mirroring an AD directory.

    Thanks!

    • 답변으로 표시됨 Ritmo2k 2012년 3월 12일 월요일 오후 1:30
    •