August 2025
M T W T F S S
 123
45678910
11121314151617
18192021222324
25262728293031

Categories

August 2025
M T W T F S S
 123
45678910
11121314151617
18192021222324
25262728293031

determine my user account’s OU in a Windows domain?

How can I determine my user account’s OU in a Windows domain?

set objSysInfo = CreateObject(“ADSystemInfo”)

set objUser = GetObject(“LDAP://” & objSysInfo.UserName)

wscript.echo “DN: ” & objUser.distinguishedName

gpresult /r

gpresult -v|more

Leave a Reply

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>