. "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\CONFIG\POWERSHELL\Registration\\sharepoint.ps1"
$spWeb = Get-SPWeb -Identity "http://nycs00058260/sites/usitp"
$splist = $spWeb.Lists["/Lists/OsEM1"]
$splist.GetItems("Item") | ForEach-Object{
Write-Host $_["Item"]
}
我尝试从归档的“项目”中提取值,但有人说“你不能在空值表达式上调用方法 >>>$splist.GetItems”
有人可以帮我找出原因并解决吗?