Is there a difference between checking a pages library and a list in terms of powershell commands?

The following cmdlet is not returning me an item, and when I checked the browser I see the list item with that id

Its a pages library

It says item does not exist or it may have been deleted by another user.

$spSite = Get-SPSite "https://mysite.com"
$spWeb = $spSite.OpenWeb("https://mysite.com/myweb/practical-tips")
$affected = $spWeb.GetList("/Pages")
$wfname="News approval workflow"

$item = $affected.GetItemById(80)

1 Answer 1


SpWeb.GetList wants "The server-relative URL to the root folder of a list", like in your case:



Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.