Giter Site home page Giter Site logo

Comments (2)

KirkMunro avatar KirkMunro commented on July 19, 2024

It turns out that the AD cmdlets provide their own "special" treatment on the PSObject Properties collection. For normal cmdlets, if you use the Properties indexer to check if a property is there or not, the indexer will simply return null for properties that do not exist. For AD objects returned by the Microsoft AD module, the indexer will return a property with a null value for properties that do not exist. Since there is no way to distinguish between a real property that exists but has a null value and a property that does not exist, a different mechanism must be used to determine if properties exist when working with objects returned from the Microsoft AD module.

The new logic is to check the type of the member that is returned from the indexer. If the member type is PSAdaptedPropertyInfo, then an additional check must be performed, using Linq with the enumerator to see if the property actually exists in the collection. If the type is not PSAdaptedPropertyInfo, then the old type check logic works just fine.

This issue has been fixed and it is included in release 1.0.1.2 of FormatPx.

from formatpx.

KirkMunro avatar KirkMunro commented on July 19, 2024

FYI if you tried this yesterday...turns out I missed a step in the release processing, so this didn't get properly posted as a release on GitHub until today. But I also pushed out release 1.0.2.3 today, so just update your module to that version and you'll have this fix plus another one that was reported and fixed today as well.

from formatpx.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.