Comments (2)
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.
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)
- I'd love to see the source for this! HOT 4
- __FormatData property shows up in unexpected places in 1.0.1.2 and earlier HOT 1
- FormatPx 1.0.2.3 and earlier prevents several Format-* | Out-* scenarios from working properly HOT 1
- FormatPx 1.0.3.4 does not work properly on PowerShell 5.0 HOT 1
- Question on format-table... getting format-list output HOT 1
- FormatPx.dll Source Code HOT 2
- Support request for Linux PowerShell Core HOT 17
- Incompatible with PowerShell 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from formatpx.