Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Getting the "notes" field from a OU in AD

Status
Not open for further replies.

falbaek

IS-IT--Management
Jul 28, 2006
6
DK
Hi

I am working on a vbs script that should give an overview of our OU in our AD. It is working except for one little detail. I can not get the notes field. Part of the script looks like this:

Code:
For Each objChild In objContainer
	groupName = Right(objChild.Name, Len(objChild.Name)-3)
	description = objChild.Description
	notes = objChild.Notes
	objExcel.ActiveCell.Offset(0,4).value = notes
	objExcel.ActiveCell.Offset(0,1).Value = description
	objExcel.ActiveCell.Offset(1,0).Activate
	Call printNames(objChild, groupName, description)
Next

The discription and groupName is printed in Excel, however the notes field continues to be empty (The length of the string is zero).
Is "notes" not the name for the bottom field for additional information, or am I making another mistake?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top