[SPO] Remove items from list with list-view threshold reached and then remove items from recycle bin
OK, so following my post from September 8th, 2021: [SPO] Delete document library folder contents using PNP PowerShell I got asked what can we do […]
OK, so following my post from September 8th, 2021: [SPO] Delete document library folder contents using PNP PowerShell I got asked what can we do […]
The old script can be found here: https://www.pbnet.ro/?p=55951 So, here goes – new script, a bit simpler:
|
1 2 3 4 |
$site = "https://worldradiohistory.com/Archive-Byte/80s/" $psPage = Invoke-WebRequest $site $urls = $psPage.ParsedHtml.getElementsByTagName("A") $urls | where {$_.pathname -like "*pdf"} | % {Invoke-WebRequest -Uri "$site$($_.pathname)" -OutFile $_.pathname } |
Note: the download will be done in […]
So, here goes:
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
#Export CSV Results to: $Path = 'c:\temp\sitegroups.csv' #Connect to SPO Tenant: Connect-SPOService "https://tenant-admin.sharepoint.com/" #Get all SharePoint sites from our Tenant $spoSites = Get-SPOSite -Limit All #verifying the groups of every site foreach ($spoSite in $spoSites) { Write-Host $spoSite.Url -ForegroundColor "Yellow" #fetching all the groups from the site $groups = Get-SPOSiteGroup -Site $spoSite.Url # verifying each group foreach ($group in $groups) { #check for the specific group if($group.Title.Contains("Likes")) { Write-Host $group.Title -ForegroundColor "Cyan" $spoSite.Url | Out-File -FilePath $Path -Append break; } } } |
OK, so we have a SharePoint document library with multiple folders that contain multiple files. How do we delete the contents of a specific folder […]
OK, so first, let’s install HTTPStat. Machine: Ubuntu 20.04.3 LTS Install PIP: apt-get install pip get the python script: wget -c https://raw.githubusercontent.com/reorx/httpstat/master/httpstat.py install HTTPSTAT: sudo pip […]
Copyright © 2025 | PhoeNIXBird Networks