Forum Discussion
StefanKi
Nov 29, 2017Iron Contributor
et all site collection in a on-premise SharePoint 2016 farm with PNP PowerShell
Hi, is it possible to get all site collection in a on-premise SharePoint 2016 farm with PNP PowerShell?
Thanks
Stefan
- It seems the answer is no...see: https://msdn.microsoft.com/en-us/pnp_powershell/pnp-powershell-overview
- StefanKiIron Contributor
There is one solution with serach
$results = Submit-PnPSearchQuery -Query "ContentClass:STS_Site" -TrimDuplicates:$false$urls = $results.ResultRows | ForEach-Object{$_.SPWebUrl}Vesa Juvonen was give me the hint to use the search. Thanks- ArnulfoWingCopper Contributorworks great.! and it is security trimmed. :)
thanks