I am looking into a way to search for a specific URL within SharePoint. I have seen the solution that searches with PowerShell script for searching lists for specific links? and http://blog.henryong.com/2011/05/20/sharepoint-link-reporter-using-powershell/ but I need something a bit in between.

The last solution would be great, if I could just filter its results into to display just the urls that contain a specific URL (for examples, lets just call it sample.test.com). Is it possible to modify the line $customLinkObjects | Select-Object WebTitle,WebURL,TopNavLink,TopLinkTitle,TopLinkURL,QLHeaderTitle,QLHeaderLink,QLChildLinkTitle,QLChildLink,ListName,ItemTitle,ItemURL,PageContentLink | Export-Csv $filePath to filter out the results unless the result is equal to sample.test.com ?

Or if there is a more elegant solution, please let me know. I am grateful for any help.

1 Answer 1


Yes its possible you just need to come up with the script. Se the following samples:



http://blogs.flexnetconsult.co.uk/colinbyrne/2008/02/26/PowerShellSharePointThreeWaysToDeleteAListItemIDCAMLStringMatching.aspx Cheers

  • Please don’t add just a link as answer to a question. If the link is broken, the answer you provided will not be useful for future visitors. Provide an answer of your own and use the link as reference. If needed you can block quote the content from your link. More information is found in our help center, especially How do I write a good answer
    – Benny Skogberg
    Jan 9, 2014 at 11:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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