Loading |
VBScript |
JavaScript |
Powershell |
Search Options: List User Account Account Page PropertiesContent of List User Account Account Page Properties.vbsMD5 Hash: F78206DB2A79E29C24C579EB79C72CB3 |
||
' Description: Retrieves user account attributes found on the Account 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 "User Principal Name: " & objUser.userPrincipalName WScript.Echo "SAM Account Name: " & objUser.sAMAccountName WScript.Echo "User Workstations: " & objUser.userWorkstations Set objDomain = GetObject("LDAP://dc=fabrikam,dc=com") WScript.Echo "Domain controller: " & objDomain.dc | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |