[Powershell] Sort by date modified and select first 10 and show only name
Below is how to sort by date modified and select first 10 and show only name by using Get-ChildItem, Sort, Select-Object in Powershell, Windows. Get-ChildItem | sort LastAccessTime -Descending | Select-Object -First 10 | Select-Object Name