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
trueto activate in-place records management and tofalseto 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,permissions,response,full. Default isoptions.--query [query]JMESPath query string. See http://jmespath.org/ for more information and examples.
-o, --output [output]Output type.
json,text,csv,md,none. Defaultjson.--verboseRuns command with verbose logging.
--debugRuns 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
Response
The command won't return a response on success.