Using
Get-ChildItem | Get-Member
I can see the methods and properties for an object. But how can I see the different possible values for e.g. properties? I can use
Get-ChildItem | Where-Object {$_.Attributes -ne "Directory"}
to extract objects which are not directory objects, but how can I see the other alternatives for .Attributes?
The provider property PSIsContainer is true for folders and false for files, so you can get files only with one of the following:
As for the Attributes property, the output of Get-Member shows its type name (System.IO.FileAttributes), which is an Enum object:
You can get its possible values with: