0

We have several documents in our online SharePoint site. We need to write a Powershell script that will return a list of all documents with a specific word in it. Is this command supposed to return content this way?

Example: Submit-PnPSearchQuery "my Name" where any document that includes that phrase in the body of it should be returned in the result rows.

1 Answer 1

0

It search document body and if you want to return more information, please use the cmdlet below:

(Submit-PnPSearchQuery -Query "your querey").ResultRows|%{$_["Title"],$_["Path"],$_["Author"]}

Here is a test in my end. enter image description here

Your Answer

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

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