Showing posts with label Count of Pages in the page Library using PowerShell. Show all posts
Showing posts with label Count of Pages in the page Library using PowerShell. Show all posts

Tuesday, 7 January 2014

Read the Page url's in the PageLibrary using Powershell SharePoint 2013



Read Pages from Page Library using Powershell SharePoint 2013


 Cls

 $web= Get-SPWeb -Identity http://sedwdevrtm:22222/sites/abcd/


# Site Pages is the Name of Library for Pages in SP2013


 $lists=$web.Lists.TryGetList("Site Pages")

# Displays the list of Pages with Name from Page Library

 Write-Host $lists.Items.Name 


# Read Site Pages with URL's Library Pages 

 Write-Host $lists.Items.URLS



# Count of Pages in the Library Pages in SP2013

 Write-Host  $lists.Items.Count