![]() Loading |
| VBScript |
| JavaScript |
| Powershell |
Search Options: List Organization Information for a User Account
|
||
|
' Description: Retrieves user account attributes found on the Organization page of the user account object in Active Directory Users and Computers.
On Error Resume Next Set objUser = GetObject _ ("LDAP://cn=myerken,ou=management,dc=fabrikam,dc=com") WScript.Echo "Title: " & objUser.title WScript.Echo "Department: " & objUser.department WScript.Echo "Company: " & objUser.company WScript.Echo "Manager: " & objUser.manager For Each strValue in objUser.directReports WScript.Echo "Direct Reports: " & strValue Next | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: | ||