Hi All.
$Home | Get-ChildItem
But I want to get string[]. How can I easier to get from DirectoryInfo array to array of strings ('Name' properties)?
$x = @()
Get-ChildItem | ForEach-Object {$x += $_.Name}
$x
Whether it is possible to reduce the code to single line?
Regards