PowerShell Tip: Specify Select Column List (Attributes/Properties) Dynamically

As we pipe stuff through a pipeline, we may have the need to add/remove/rename columns. These three operations are easy to do. Remove/Add/Rename Remove: Here we remove all attributes returned from Get-Process except Handles and ProcessName by not selecting them Add: Here we add a new attribute name "NewAttribute" to the existing two attributes Handles … Continue reading PowerShell Tip: Specify Select Column List (Attributes/Properties) Dynamically

Advertisements