Wednesday, April 2, 2014

Get SharePoint SubSite List items via PowerShell

If you want to get all items in a specific list in Subsite, PowerShell can help:

Add-PSSnapin Microsoft.SharePoint.PowerShell –erroraction SilentlyContinue

$spWeb = Get-SPweb "http://sp/site"

$subsite = $spweb.Webs | where {$_.title -eq "SubSiteName"}
$lists = $subSite.Lists
$mylist = $lists | where {$_.title -eq "ListName"}
$mylist.GetItems() | select name


1 comment:

  1. The Most Popular Real Money Casinos - Casino Roll
    It's easy to see why real 배당 토토 money casinos like the one on 슈어맨 the list of the 윌리엄힐 most popular are not only great for 토토 배당률 casino players but 골인 벳 also for gamblers.

    ReplyDelete