Forum Discussion
Avian 1
Sep 25, 2022Iron Contributor
How to generate a list of hidden items from list or document library list?
Hello, How to generate a list of hidden items from list or document library list using PowerShell? Regards Avian
Avian 1
Sep 26, 2022Iron Contributor
Hello Ganeshanap,
Yes, we have the site collection admin access.
If you so many document library and underneath so many folders, it is vert difficult to go each list and library if they are hidden or not.
I am sure using this we can generate the list for all the sites and sub sites.
Regards
Avian
Yes, we have the site collection admin access.
If you so many document library and underneath so many folders, it is vert difficult to go each list and library if they are hidden or not.
I am sure using this we can generate the list for all the sites and sub sites.
Regards
Avian
NanddeepNachan
Sep 26, 2022Learn Expert
Hi Avian 1
Use below PowerShell to get list of hidden lists under a given site
$site = Connect-PnPOnline -Url "YOUR SHAREPOINT SITE URL HERE"
Get-PnPList | Where {$_.Hidden -eq $true}
See below implementation on How to to get all site collections with their sub webs
https://pnp.github.io/script-samples/get-all-site-collections-subwebs/README.html?tabs=pnpps
Hope this helps!