The traditional or PowerShell 2.0 way of retrieving only files is: Get-ChildItem $env:windir | Where-Object { ! $_.PSIsContainer }.
確定! 回上一頁