Skip to content

spo site inplacerecordsmanagement set

Activates or deactivates in-place records management for a site collection

Usage

m365 spo site inplacerecordsmanagement set [options]

Options

-u, --siteUrl <siteUrl>
The URL of the site on which to activate or deactivate in-place records management
--enabled <enabled>
Set to true to activate in-place records management and to false to deactivate it
-h, --help [help]
Output usage information. Optionally, specify which section of command's help you want to see. Allowed values are options, examples, remarks, response, full. Default is full.
--query [query]
JMESPath query string. See http://jmespath.org/ for more information and examples
-o, --output [output]
Output type. json,text,csv,md. Default json
--verbose
Runs command with verbose logging
--debug
Runs command with debug logging

Examples

Activates in-place records management for site https://contoso.sharepoint.com/sites/team-a

m365 spo site inplacerecordsmanagement set --siteUrl https://contoso.sharepoint.com/sites/team-a --enabled true

Deactivates in-place records management for site https://contoso.sharepoint.com/sites/team-a

m365 spo site inplacerecordsmanagement set --siteUrl https://contoso.sharepoint.com/sites/team-a --enabled false