SharePoint PowerShell: Get files in Library

Get the Name and Url of the files inside a SharePoint Document library using PowerShell:
Code Example 1:
$web = Get-SPWeb "http://aissp2013/sites/TestSite"
$list = $web.Lists["Docs"]
$items = $list.Items
foreach($item in $items)
    Write-Host Name: $item.File.Name Url: $item.File.Url
Code Example 2:
Get-SPWeb "http://aissp2013/sites/TestSite" | Select -ExpandProperty Lists | Where {$_.Title -eq "Docs" } | Select -ExpandProperty Items | Select Name, Url


PowerShell Output

profile for Nadeem Yousuf at SharePoint Stack Exchange, Q&A for SharePoint enthusiasts