PowerShell Select-Object: Properties, -First, -Unique and More
Select-Object is the PowerShell cmdlet that picks properties from objects, or picks a number of objects from a list. The examples below use this list of employees: To keep only some properties, list them after -Property: Output: I ran every example in real PowerShell 7.6 and Windows PowerShell 5.1 consoles. Where a parameter exists in … Read more