Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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.

share|improve this question

1 Answer 1

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

http://blog.henryong.com/2009/02/11/purging-a-sharepoint-list-using-powershell/

http://sharepointnomad.wordpress.com/2009/12/30/create-and-delete-sharepoint-list-views-with-powershell/

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

share|improve this answer

We're looking for long answers that provide some explanation and context. Don't just give a one-line answer; explain why your answer is right, ideally with citations. Answers that don't include explanations may be removed.

    
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 MCSA Jan 9 at 11:15

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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