GetProp is a generic function that is used to return single-valued properties from objects in the Active Directory. If the property is empty it writes an entry to the application log via the LogData routine.
This function accepts two parameters:
This is the DistinguishedName property of the object that we are working on. It is generated somewhere outside of this routine.
This is just whatever single-valued property that we are looking for. A listing of all properties for Active Directory Objects can be found on the main page of this site.