# SharePointスナップインが読み込まれているか調べる
$snapInInfo = Get-PSSnapin | `
Where-Object{$_.Name -eq "Microsoft.SharePoint.PowerShell"}
if ($snapInInfo -eq $null)
{
# SharePoint スナップインが追加されていないので追加する
Add-PSSnapin Microsoft.SharePoint.PowerShell
}
$rootweb = Get-SPWeb -Identity "http://SPApp/Sites/Site"
$webs = $rootweb.Webs
if ($webs -ne $null)
{
ForEach($web in $webs)
{
$web.Lists | Where-Object{$_.Title -eq "月別売上報告"} | `
Select-Object items | ForEach-Object{$_.Items} | `
Select-Object Title ,File | Format-Table -Auto
}
}
$snapInInfo = Get-PSSnapin | `
Where-Object{$_.Name -eq "Microsoft.SharePoint.PowerShell"}
if ($snapInInfo -eq $null)
{
# SharePoint スナップインが追加されていないので追加する
Add-PSSnapin Microsoft.SharePoint.PowerShell
}
$rootweb = Get-SPWeb -Identity "http://SPApp/Sites/Site"
$webs = $rootweb.Webs
if ($webs -ne $null)
{
ForEach($web in $webs)
{
$web.Lists | Where-Object{$_.Title -eq "月別売上報告"} | `
Select-Object items | ForEach-Object{$_.Items} | `
Select-Object Title ,File | Format-Table -Auto
}
}
このページへのコメント
Czg414 <a href="http://zdjjogrteoku.com/">zdjjogrteoku</a>, [url=http://ubwbcegbixzx.com/]ubwbcegbixzx[/url], [link=http://isuiwnvbqtwq.com/]isuiwnvbqtwq[/link], http://rzbadiqvsegy.com/