question

LeeMossolle-0867 avatar image
0 Votes"
LeeMossolle-0867 asked ElsieLu-MSFT answered

Search for file names

I have the following script to look for file names that contain a name in a list. However it seems to take a long time to complete. Is there anything that can be done to get faster results?

 Get-ChildItem -Path “C:\Users" -Recurse  -Force -Exclude *.dll, *.exe | where {$_.name -like "one","two","three","4","5","6"} | Select-Object fullname,name,lastwritetime | Export-Csv “c:\location\Keyword-search.csv” -NoTypeInformation
office-sharepoint-server-search-itpro
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

ElsieLu-MSFT avatar image
0 Votes"
ElsieLu-MSFT answered

Hi @LeeMossolle-0867 ,

Are you the command executed after you map the library to the local?

Per my test, my data can be exported quickly. How many documents are there in this libray in general?

80125-6.jpg
80108-5.jpg


If the answer is helpful, please click "Accept Answer" and upvote it.

Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


6.jpg (24.6 KiB)
5.jpg (43.2 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.