![]() Loading |
VBScript |
JavaScript |
Powershell |
Search Options: List Address Page Information for a User Account
|
||
' Description: Returns address-related attribute values for the MyerKen Active Directory user account.
On Error Resume Next Set objUser = GetObject _ ("LDAP://cn=MyerKen,ou=Management,dc=NA,dc=fabrikam,dc=com") WScript.Echo "Street Address: " & objUser.streetAddress WScript.Echo "Locality: " & objUser.l WScript.Echo "State/province: " & objUser.st WScript.Echo "Postal Code: " & objUser.postalCode WScript.Echo "Country: " & objUser.c WScript.Echo "Post Office Boxes:" For Each strValue in objUser.postOfficeBox WScript.echo vbTab & vbTab & strValue Next | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |