November 2018
Intermediate to advanced
566 pages
17h 15m
English
The first step is to understand that a cmdlet can output one or more types of objects. For instance, in our case, Get-ChildItem will output System.IO.DirectoryInfo, as well as System.IO.FileInfo. Let's learn how to work with these:
PS> Get-ChildItem | Get-Member | Select-Object TypeName -Unique
PS> $TypeData = Get-ChildItem | Get-Member | Select-Object -ExpandProperty TypeName -Unique -Last 1
PS> Get-TypeData -TypeName $TypeData | Select-Object -ExpandProperty Members
The output ...
Read now
Unlock full access