CmdID / PowerShell / Cmdlets / Update
Update-MgSolutionBackupRestoreOneDriveForBusinessProtectionPolicy
Update the protection policy for the OneDrive service in Microsoft 365. Microsoft Graph PowerShell reference
From the Microsoft Graph PowerShell reference 27 parameters Its page in the reference
Parameters
Show its 27 parameters
-AdditionalPropertiesAdditional Parameters-BodyParameteroneDriveForBusinessProtectionPolicy To construct, see NOTES section for BODYPARAMETER properties and create a hash table.-BreakWait for .NET debugger to attach-Confirm, -cfPrompts you for confirmation before running the cmdlet.-CreatedByidentitySet To construct, see NOTES section for CREATEDBY properties and create a hash table.-CreatedDateTimeThe time of creation of the policy.-DisplayNameThe name of the policy to be created.-DriveInclusionRulesContains the details of the Onedrive for Business protection rule.-DriveProtectionUnitsContains the protection units associated with a OneDrive for Business protection policy.-DriveProtectionUnitsBulkAdditionJobsTo construct, see NOTES section for DRIVEPROTECTIONUNITSBULKADDITIONJOBS properties and create a hash table.-HeadersOptional headers that will be added to the request.-HttpPipelineAppendSendAsync Pipeline Steps to be appended to the front of the pipeline-HttpPipelinePrependSendAsync Pipeline Steps to be prepended to the front of the pipeline-IdThe unique identifier for an entity.-InputObjectIdentity Parameter To construct, see NOTES section for INPUTOBJECT properties and create a hash table.-IsEnabled-LastModifiedByidentitySet To construct, see NOTES section for LASTMODIFIEDBY properties and create a hash table.-LastModifiedDateTimeThe timestamp of the last modification of the policy.-OneDriveForBusinessProtectionPolicyIdThe unique identifier of oneDriveForBusinessProtectionPolicy-ProtectionPolicyArtifactCountprotectionPolicyArtifactCount To construct, see NOTES section for PROTECTIONPOLICYARTIFACTCOUNT properties and create a hash table.-ProxyThe URI for the proxy server to use-ProxyCredentialCredentials for a proxy server to use for the remote call-ProxyUseDefaultCredentialsUse the default credentials for the proxy-ResponseHeadersVariable, -RHVOptional Response Headers Variable.-RetentionSettingsContains the retention setting details for the policy.-StatusprotectionPolicyStatus-WhatIf, -wiRuns the command in a mode that only reports what would happen without performing the actions.