Skip to content

[FEATURE] Set-PnPFileArchiveState cmdlet for file-level archival #5282

@Saurabh7019

Description

@Saurabh7019

Is your feature request related to a problem? Please describe.
M365 file-level archival has been in public preview for a couple of weeks. While we wait for admin-level policies, it would be useful to archive files at scale using PnP PowerShell.

Describe the solution you'd like
A command similar to site archival (Set-PnPSiteArchiveState), e.g. Set-PnPFileArchiveState, that takes the site URL and file (server- or site-relative URL) as parameters to archive the file.

Describe alternatives you've considered
Right now the only option is manual handling, which doesn't scale.

Additional context
Possible with Graph as well as SharePoint REST API

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions