script-samples
script-samples copied to clipboard
đŸ’¡Query advanced CSOM properties with PnP PowerShell
Query advanced CSOM properties with PnP PowerShell.
PowerShell supports .NET types and can even compile C# code, so in cases where having as few as possible CSOM queries is needed (for example tenant inventory with 10'000+ site collections), one can rely to C# CSOM and call a single Invoke-PnPQuery instead of multiple Get-PnPProperty calls. This supports C# LINQ Include to traverse the tree of properties.