Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Add-PSSnapin Microsoft.SharePoint.PowerShell
- clear
- $wUrl = 'http://mysharepoint.site.web/'
- $lName = 'Pages'
- $w = Get-SPWeb $wUrl
- $l = $w.Lists[$lName]
- # $item = $l.GetItemById(4)
- $l.Items | % {
- $item = $_
- "$($item.Title): $($item.Url)"
- $mgr = $w.GetLimitedWebPartManager("$($item.Url)", [System.Web.UI.WebControls.WebParts.PersonalizationScope]::Shared)
- $mgr.WebParts|%{ "`t$($_.Title) :: $($_.WebBrowsableObject)" }
- "=============================================="
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement