Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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

1 Answer 1

up vote 1 down vote accepted

You can return any property on the SPList object (http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.splist_members.aspx). 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

 
discard

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.