Get-ChildItemToDepth
A module that Returns child-items recursively to a given depth.
This module Get-ChildItemToDepth.psm1 exposes the following function:
Syntax Get-ChildItemToDepth
Get-ChildItemToDepth [[-Path] <String>] [[-Filter] <String>] [[-ToDepth] <Byte>] [[-CurrentDepth] <Byte>] [-FoldersOnly] [-DebugMode] [<CommonParameters>]
Example
Get-ChildItemToDepth -Path 'D:\' -ToDepth 0 -FoldersOnly | select fullname