SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've created a Powershell script to get all the lists in my site with their Guids. This is working but I also want the script to the return the URL.

$_.Lists | ForEach-Object {Write-host "List:"$_.Title ":"$_.Id > C:\Guids.csv}

Can someone point me in the right direction. Thanks.

share|improve this question
up vote 1 down vote accepted

You can return any property on the SPList object ( The closest I think that would give you what you want is the DefaultViewUrl property. So $_.DefaultViewUrl.

share|improve this answer
That worked, thanks! – Jovi Feb 28 '13 at 19:12

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.