Add File Archive Policy cmdlet documentation#1181
Conversation
Add auto archive public documentation files
PoliCheck Scan ReportThe following report lists PoliCheck issues in PR files. Before you merge the PR, you must fix all severity-1 and severity-2 issues. The AI Review Details column lists suggestions for either removing or replacing the terms. If you find a false positive result, mention it in a PR comment and include this text: #policheck-false-positive. This feedback helps reduce false positives in future scans. ✅ No issues foundMore information about PoliCheckInformation: PoliCheck | Severity Guidance | Term |
|
Learn Build status updates of commit 5931a42:
|
Added, updated, and removed cmdlet documentation for File Archive Policies.
PoliCheck Scan ReportThe following report lists PoliCheck issues in PR files. Before you merge the PR, you must fix all severity-1 and severity-2 issues. The AI Review Details column lists suggestions for either removing or replacing the terms. If you find a false positive result, mention it in a PR comment and include this text: #policheck-false-positive. This feedback helps reduce false positives in future scans. ✅ No issues foundMore information about PoliCheckInformation: PoliCheck | Severity Guidance | Term |
|
@sachin-lalwani Before this PR can be merged, a Content Lead needs to add the Sign off label to it. Only one of the listed reviewers needs to add the Sign off label. Before you sign off a PR, confirm the following:
After you've confirmed the above, do the following to sign off:
After you've signed off, our operations (PubOps) team will review the PR for issues that may impact formatting and the customer experience. If any changes are needed, they will return When the PR passes PubOps review, they'll merge the PR. If the PR is merged into the main branch, changes will go live within the next couple hours. If you think you were incorrectly added as a reviewer, have questions about this process, or need help signing off on this PR, post a message to https://aka.ms/tcphelp. |
|
fill in this section -- you have a whole lot of related cmdlets, so this is the place you place them. See how other .md files are doing it. applies to this file and others #Closed Refers to: sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Add-SPOSiteToFileArchivePolicy.md:80 in 440e7e3. [](commit_id = 440e7e3, deletion_comment = False) |
- Add missing front matter properties (applicable, title, author, ms.author, ms.reviewer) - Use 'This cmdlet...' instead of repeating cmdlet name in descriptions - Remove assumed admin role requirement line - Remove 'PS C:\>' prefix from examples - Use lowercase 'file archive policy' instead of Title Case - Remove (e.g., ...) examples from parameter descriptions - Update CommonParameters with backtick-formatted params and new URL - Move preview note from NOTES to Description using [!NOTE] decorator - Format WhatIf in backticks when referenced in prose Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
PoliCheck Scan ReportThe following report lists PoliCheck issues in PR files. Before you merge the PR, you must fix all severity-1 and severity-2 issues. The AI Review Details column lists suggestions for either removing or replacing the terms. If you find a false positive result, mention it in a PR comment and include this text: #policheck-false-positive. This feedback helps reduce false positives in future scans. ✅ No issues foundMore information about PoliCheckInformation: PoliCheck | Severity Guidance | Term |
|
Learn Build status updates of commit 83f137c: ✅ Validation status: passed
For more details, please refer to the build report. |
- Use backticks instead of quotes for parameter values in prose (SelectedSites, AllSites, Active, Inactive) - Use [!IMPORTANT] tag for LastAccessDateCriteria July 2025 accuracy note - Move Inactive state note from NOTES section to Description in New-SPOFileArchivePolicy Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…hive policy cmdlets Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
Learn Build status updates of commit f981165: ✅ Validation status: passed
For more details, please refer to the build report. |
PoliCheck Scan ReportThe following report lists PoliCheck issues in PR files. Before you merge the PR, you must fix all severity-1 and severity-2 issues. The AI Review Details column lists suggestions for either removing or replacing the terms. If you find a false positive result, mention it in a PR comment and include this text: #policheck-false-positive. This feedback helps reduce false positives in future scans. ✅ No issues foundMore information about PoliCheckInformation: PoliCheck | Severity Guidance | Term |
1 similar comment
PoliCheck Scan ReportThe following report lists PoliCheck issues in PR files. Before you merge the PR, you must fix all severity-1 and severity-2 issues. The AI Review Details column lists suggestions for either removing or replacing the terms. If you find a false positive result, mention it in a PR comment and include this text: #policheck-false-positive. This feedback helps reduce false positives in future scans. ✅ No issues foundMore information about PoliCheckInformation: PoliCheck | Severity Guidance | Term |
|
Learn Build status updates of commit 829a7b8: ✅ Validation status: passed
For more details, please refer to the build report. |
- PolicyType: String -> SPOFileArchivePolicyType (in New-SPO and Set-SPO) - State: String -> SPOFileArchivePolicyState (in Set-SPO) - Updated SYNTAX blocks to match Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
Learn Build status updates of commit c3c15ae: ✅ Validation status: passed
For more details, please refer to the build report. |
PoliCheck Scan ReportThe following report lists PoliCheck issues in PR files. Before you merge the PR, you must fix all severity-1 and severity-2 issues. The AI Review Details column lists suggestions for either removing or replacing the terms. If you find a false positive result, mention it in a PR comment and include this text: #policheck-false-positive. This feedback helps reduce false positives in future scans. ✅ No issues foundMore information about PoliCheckInformation: PoliCheck | Severity Guidance | Term |

Summary
This PR adds reference documentation for the SharePoint Online File Archive Policy cmdlets. These cmdlets allow SharePoint and Global Administrators to create, configure, monitor, and manage file archive policies that automatically archive files based on criteria such as last access date and file type.
New cmdlets documented
New-SPOFileArchivePolicyGet-SPOFileArchivePolicyGet-SPOFileArchivePolicyReportGet-SPOFileArchivePolicySitesSet-SPOFileArchivePolicyRemove-SPOFileArchivePolicyAdd-SPOSiteToFileArchivePolicyRemove-SPOSiteToFileArchivePolicyDetails
Microsoft.Online.SharePoint.PowerShell