标签: powershell powercli
这是我所拥有的:
cd C:\Users\$env:USERNAME\ $directories=ls -Directory */ foreach ($folder in $directories){ cd $folder pwd $ls = ls | select name Write-Output $ls }