Because PowerShell is all about the objects, I often point out to beginners to use the Select-Object cmdlet to see all the properties of an object and their values.
PS C:\> get-process powershell | select *
Using Get-Member is helpful…
Read More
In this month’s SAPIEN newsletter I offered a PowerShell oneliner to returns usage information for a specified folder. I don’t have room in the newsletter to go into detail so here is more in-depth coverage of this oneliner. I’ll also…
Read More
There’s recently been a big discussion on the PowerShell MVP mailing list about Select-Object and its -first parameter, which instructs it to only keep the first “x” objects it’s given. The discussion basically goes like this:
1..10000 | select -first…
Read More