Custom Ad schema definition

This topic contains 2 replies, has 2 voices, and was last updated by Profile photo of David Zemdegs David Zemdegs 6 days, 12 hours ago.

  • Author
    Posts
  • #70835
    Profile photo of David Zemdegs
    David Zemdegs
    Participant

    Hi,
    I am starting to create some Custom AD schema attributes. The first one I created was defined as singlevalued and checking it in ADSIEDIT confirms that. When I do a get-aduser -properties customatt, the string contained in that atttribute is displayed within curly brackets, usually indicating that it is an array or collection. Doing a GM on the returning object, the custom attribute definition is displayed as 'Deserialized.Microsoft.ActiveDirectory.Management.ADPropertyValueCollection' which also indicates it is an array or multivalued property. However when doing an '-is [array]' on the attribute I get false. I can certainly treat this property as though its a single string. Is this just a quirk of AD custom attributes and Powershell?

    Thanks
    David

  • #70849
    Profile photo of Don Jones
    Don Jones
    Keymaster

    Yup. The commands hates custom attributes, my precious.

  • #70852
    Profile photo of David Zemdegs
    David Zemdegs
    Participant

    Thanks Gollum 🙂

You must be logged in to reply to this topic.