script-samples icon indicating copy to clipboard operation
script-samples copied to clipboard

Add "Query advanced CSOM properties with PnP PowerShell" sample

Open jackpoz opened this issue 1 year ago • 0 comments

This sample script shows how to query CSOM properties with PnP PowerShell by writing C# code, importing it in PowerShell and sending a single Invoke-PnPQuery request, useful when trying to speed up scripts that have to process a lot of site collections where every request affects the execution time.

I have used this method went writing inventory scripts with 10'000+ site collections (and I wish I knew about it when I had 300'000 site collections :P )

Closes https://github.com/pnp/script-samples/issues/687

Still unsure about the sample.json and preview.png, hope it's good enough :)

jackpoz avatar Apr 07 '24 20:04 jackpoz