CmdID / PowerShell / Cmdlets / Set
Set-DeviceTenantRule
Use the Set-DeviceTenantRule cmdlet to modify your organization's mobile device tenant rule in Basic Mobility and Security in Microsoft 365. Exchange PowerShell reference
From the Exchange PowerShell reference 7 parameters Its page in the reference
Parameters
-IdentityThe Identity parameter specifies the name of the mobile device tenant rule that you want to modify, but there's only one in your organization.-ApplyPolicyToThe ApplyPolicyTo parameter specifies where to apply the policy in your organization.-BlockUnsupportedDevicesThe BlockUnsupportedDevices parameter specifies whether to block access to your organization by unsupported devices.-Confirm, -cfThe Confirm switch specifies whether to show or hide the confirmation prompt.-DomainControllerThis parameter is reserved for internal Microsoft use.-ExclusionListThe ExclusionList parameter specifies the security groups to exclude from this policy.-WhatIf, -wiThe WhatIf switch doesn't work in Security & Compliance PowerShell.