New-SPOSiteFileVersionExpirationReportJob
Generates a version storage usage report for a site collection. This report can be used to understand current version storage footprint of the site.
Syntax
New-SPOSiteFileVersionExpirationReportJob
[-Identity] <SpoSitePipeBind>
-ReportUrl <String>
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
Generates a version storage usage report for a site collection. This report can be used to understand current version storage footprint of the site.
Examples
EXAMPLE 1
New-SPOSiteFileVersionExpirationReportJob -Identity https://contoso.sharepoint.com/sites/site1 -ReportUrl "https://contoso.sharepoint.com/sites/sites1/reports/MyReports/VersionReport.csv"
Example 1 starts generating file version expiration report on for the site collection, saving the result to a csv file within the site collection.
Parameters
-Confirm
Prompts you for confirmation before running the cmdlet.
Type: | System.Management.Automation.SwitchParameter |
Aliases: | cf |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Identity
Applicable: SharePoint Online
Specifies the URL of the site collection.
Type: | Microsoft.Online.SharePoint.PowerShell.SpoSitePipeBind |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-ReportUrl
The URL of the report to save to.
Type: | System.String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-WhatIf
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Type: | System.Management.Automation.SwitchParameter |
Aliases: | wi |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Inputs
Microsoft.Online.SharePoint.PowerShell.SpoSitePipeBind
Outputs
System.Object