Eine SharePoint Site hat im Moment 69 Properties. Möchte jemand für alle Sites die Properties exportieren sind es nur wenige PowerShell Commands.
In den Properties einer SharePoint Sites sind Konfigurationen über Gastzugriffe, Standard für Teilen, Status von Power Automate Workflows, wie lange ein anonymer Link gültig ist, und viele Informationen mehr inkludiert. Wird die Standardkonfiguration aus dem Tenant übernommen ist die Information ebenfalls inkludiert. Je nach Property in unterschiedlicher Form. In Summe sind es zum aktuellen Zeitpunkt 69 Properties. In manchen Situationen kann eine Überprüfung der Konfigurationen von Vorteil sein.

Die Properties aller SharePoint Sites lassen sich über PowerShell sehr schnell auswerten und exportieren. Excel ermöglicht die Filterung und Weiterverarbeitung des Exports.

- Für dein Konto muss die Rolle SharePoint Admin aktiv sein.
- Du benötigst das SharePoint Online PowerShell Modul.
- Der Export wird unter C:\Users\<Username>\Documents abgelegt.
Update vom 3. Mai 2022:
Aktualisierung aufgrund von „-Limit All“ Limitierungen.
# Export all SharePoint site properties for SharePoint sites
# For my post at https://blog.topedia.com/?p=17391
# Replace the SharePointAdminUrl with your SharePoint Admin Center URL
$SharePointAdminUrl = "https://<Tenantname>-admin.sharepoint.com"
# SharePoint Online PowerShell module is required > https://www.powershellgallery.com/packages/Microsoft.Online.SharePoint.PowerShell
Import-Module Microsoft.Online.SharePoint.PowerShell
# Logon with a SharePoint Online Admin
Connect-SPOService $SharePointAdminUrl
$AllSPOSites = (Get-SPOSite -Limit All).Url
$PropertyExport = @()
$Count = 1
foreach ($SPOSite in $AllSPOSites)
{
Write-Host ("$Count of " + $AllSPOSites.Count + " - " + $SPOSite)
# Requesting the site details again, due to the "-Limit All" limitations https://docs.microsoft.com/en-us/powershell/module/sharepoint-online/get-sposite?view=sharepoint-ps#description
$SPOSite = Get-SPOSite -Identity $SPOSite -Detailed
$PropertyExport += $SPOSite | select *
$Count++
}
# Export the information into a csv-file at C:\Users\<Username>\Documents
$Date = get-date -format "dd-MM-yyyy"
$ExportPath = ([Environment]::GetFolderPath("MyDocuments") + "\SharePointSitePropertiesExport-$Date.csv")
$PropertyExport | Export-Csv -Path $ExportPath -NoTypeInformation -Force
Write-Host "File export: $ExportPath"



No comments yet