List the General Properties of an OU

Returns information found on the General Properties page in Active Directory Users and Computers for an OU named Sales.

VBScript Code

On Error Resume Next

Set objContainer = GetObject _
For Each strValue in objContainer.description
  WScript.Echo "Description: " & strValue
Wscript.Echo "Street Address: " & strStreetAddress
Wscript.Echo "Locality: " & 
Wscript.Echo "State/porvince: " &
Wscript.Echo "Postal Code: " & objContainer.postalCode
Wscript.Echo "Country: " & objContainer.c