PowerShell PowerShell Resolve-Path -Path C:\users\*\Desktop -ErrorAction SilentlyContinue | ForEach-Object {$_.Path.Split('\')[-2]} 1 Resolve-Path -Path C:\users\*\Desktop -ErrorAction SilentlyContinue | ForEach-Object {$_.Path.Split('\')[-2]}