Export-UcOneDriveWithMultiplePermissions
Syntax
Export-UcOneDriveWithMultiplePermissions
-MultiGeo
-OutputPath
Description
This cmdlet will check all OneDrives and return the OneDrive that have additional users with permissions.
Requirements
- EntraAuth PowerShell Module (Install-Module EntraAuth)
or
Microsoft Graph Auth PowerShell Module (Install-Module Microsoft.Graph.Authentication) - Microsoft Graph Permissions:
- Sites.Read.All
- Or
- Sites.ReadWrite.All
Note: Currently the SharePoint Sites requires to authenticate to Graph API with Application – Authentication and authorization basics – Microsoft Graph
Parameters
- MultiGeo – Required if Tenant is MultiGeo.
- OutputPath – Allows to specify the path where we want to save the results. By default, it will save on current user Download folder.
Example
Export-UcOneDriveWithMultiplePermissions
Export-UcOneDriveWithMultiplePermissions -MultiGeo
Export-UcSharePointSitesWithEmptyFiles
Syntax
Export-UcSharePointSitesWithEmptyFiles
-Query
-OutputPath
-MultiGeo
-IncludeOneDrive
Description
This cmdlet will check all SharePoint Sites and OneDrive looking for empty files (size = 0).
Please note that by default Query parameter will PDF.
Requirements
- EntraAuth PowerShell Module (Install-Module EntraAuth)
or
Microsoft Graph Auth PowerShell Module (Install-Module Microsoft.Graph.Authentication) - Microsoft Graph Permissions:
- Sites.Read.All
- Or
- Sites.ReadWrite.All
Note: Currently the SharePoint Sites requires to authenticate to Graph API with Application – Authentication and authorization basics – Microsoft Graph
Parameters
- Query – The query text used to search for items. Values may be matched across several fields including filename, metadata, and file content (Search for files – Microsoft Graph).
- OutputPath – Allows to specify the path where we want to save the results. By default, it will save on current user Download folder.
- MultiGeo – Required if Tenant is MultiGeo.
- IncludeOneDrive – If OneDrives should also be included in the report.
Example
Export-UcSharePointSitesWithEmptyFiles
Export-UcSharePointSitesWithEmptyFiles -Query "Excel"
Export-UcSharePointSitesWithEmptyFiles -MultiGeo
Export-UcSharePointSitesWithEmptyFiles -IncludeOneDrive
Export-UcSharePointSitesWithHold
Syntax
Export-UcSharePointSitesWithHold
-OutputPath
-IncludeOneDrive
Description
This cmdlet will generate a csv file with SharePoint Sites and OneDrive with a hold in place.
Requirements
- SharePoint Online PowerShell
Install-Module -Name Microsoft.Online.SharePoint.PowerShell
Connect-SPOService -Url https://contoso-admin.sharepoint.com - Security & Compliance PowerShell
Install-Module -Name ExchangeOnlineManagement
Connect-IPPSSession -UserPrincipalName user.adm@contoso.onmicrosoft.com
Parameters
- OutputPath – Allows to specify the path where we want to save the results. By default, it will save on current user Download folder.
- IncludeOneDrive – If OneDrives should also be included in the report.
Example
Export-UcSharePointSitesWithHold
Export-UcSharePointSitesWithHold -IncludeOneDrive