View Full Version : Need help retrieving the Managed By field from a computer object in AD
I need to retreive the Managed By field from a computer object in AD using VBScript. I'm stumped. I can get other things, but the Managed By field is giving me the finger. Anyone ever done this before?
tia
-OC
Dman33
09-02-2004, 01:54 PM
You mean through an ADSI query or something? I can show you how to do it for an OU. Would that be inherited to the computer object within that OU?
You mean through an ADSI query or something? I can show you how to do it for an OU. Would that be inherited to the computer object within that OU?
Yes, using ADSI. There's no inheritance in our case. I just can't find the damn Managed By field.
It's worth mentioning that while I love scripting this kind of thing, it is not my strong suit. I'll take six hours to do what another person can do in 15 minutes or less. But, when you're given a project..... Fortunately, I don't have to do this kind of thing very often.
Dman33
09-05-2004, 03:48 PM
Hmmm... okay, these snippets from Technet might help you out.
This example returns ManagedBy for an OU. (http://www.microsoft.com/technet/community/scriptcenter/user/scrug184.mspx)
This example returns ManagedBy for a group. (http://www.microsoft.com/technet/community/scriptcenter/user/scrug183.mspx)
Should point you in the right direction for getting the value for a computer object. Good luck!
Powered by vBulletin® Version 4.1.12 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.