getting all OUs of a user Share on Facebook Post on reddit Tweet on Twitter Share on LinkedIn Home › Forums › Scripting › General Scripting › getting all OUs of a user This topic has 0 replies, 1 voice, and was last updated 14 years, 5 months ago by poly. Viewing 1 post (of 1 total) Author Posts polyMember Jun 19, 2006 at 4:34 am #113836 hello all, i am trying to get the OU of a user using the following: Set oAdsSysObj = CreateObject(“ADSystemInfo”) Set objUser = GetObject(“LDAP://” & oAdsSysObj.UserName) Set objContainer = GetObject(objUser.Parent) wscript.echo objContainer.Get(“name”) and it works just fine. Now what i want to do, is to get a list of all OUs of that specific user. how do i do that? Thanks everyone. Poly. Author Posts Viewing 1 post (of 1 total) You must be logged in to reply to this topic.