Querying msDS-User-Account-Control-Computed in ADLDS under Windows 2008 R2
-
Thursday, March 01, 2012 3:02 PM
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!- Edited by Ritmo2k Thursday, March 01, 2012 3:02 PM
All Replies
-
Thursday, March 01, 2012 7:02 PM
Hello,
Please read this article:
Regards
-
Thursday, March 01, 2012 7:25 PMExactly where I got the code... The brackets aren't the issue...
-
Thursday, March 01, 2012 10:22 PM
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/

This posting is provided AS IS with no warranties,and confers no rights.- Marked As Answer by Arthur_LiMicrosoft Contingent Staff, Moderator Monday, March 12, 2012 2:56 AM
- Unmarked As Answer by Ritmo2k Monday, March 12, 2012 1:27 PM
-
Thursday, March 01, 2012 11:07 PMActually 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! -
Friday, March 02, 2012 2:31 AMModerator
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!
Arthur Li
If you are TechNet Subscription user and have any feedback on our support quality, please send your feedback here.
Arthur Li
TechNet Community Support
- Marked As Answer by Arthur_LiMicrosoft Contingent Staff, Moderator Monday, March 12, 2012 2:55 AM
- Unmarked As Answer by Ritmo2k Monday, March 12, 2012 1:27 PM
-
Tuesday, March 06, 2012 3:23 AMModeratorHi,
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.
Arthur Li
If you are TechNet Subscription user and have any feedback on our support quality, please send your feedback here.
Arthur Li
TechNet Community Support
-
Monday, March 12, 2012 1:30 PM
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!- Marked As Answer by Ritmo2k Monday, March 12, 2012 1:30 PM

