如何使用 Powershell 从 Exchange 移动设备检索 "Policy Application Status"?
Using Powershell how can I retrieve "Policy Application Status" from an Exchange Mobile Device?
我正在编写一个脚本来处理 exchange 2019 中被隔离的移动设备,在允许它们之前我需要确认 "Policy application status" 是 "Applied in full" 但我不认为这是一个可供参考的选项使用 Get-MobileDevice。
您要查找的用于检索策略申请状态的命令是:
这是一个将拉 DevicePolicyApplicationStatus
的示例:
Get-MobileDeviceStatistics -Mailbox mailboxusername | select DeviceID, DeviceType, DevicePolicyApplicationStatus
MS 提供的示例也可能有帮助:
This example uses the Get-CASMailbox cmdlet to determine who in the
organization has an Exchange ActiveSync mobile device. For each mobile
device, the Exchange ActiveSync device statistics are retrieved.
$UserList = Get-CASMailbox -Filter {HasActiveSyncDevicePartnership -eq $true -and -not DisplayName -like "CAS_{*"} | Get-Mailbox; $UserList | foreach {Get-MobileDeviceStatistics -Mailbox $_.Identity}
我正在编写一个脚本来处理 exchange 2019 中被隔离的移动设备,在允许它们之前我需要确认 "Policy application status" 是 "Applied in full" 但我不认为这是一个可供参考的选项使用 Get-MobileDevice。
您要查找的用于检索策略申请状态的命令是:
这是一个将拉 DevicePolicyApplicationStatus
的示例:
Get-MobileDeviceStatistics -Mailbox mailboxusername | select DeviceID, DeviceType, DevicePolicyApplicationStatus
MS 提供的示例也可能有帮助:
This example uses the Get-CASMailbox cmdlet to determine who in the organization has an Exchange ActiveSync mobile device. For each mobile device, the Exchange ActiveSync device statistics are retrieved.
$UserList = Get-CASMailbox -Filter {HasActiveSyncDevicePartnership -eq $true -and -not DisplayName -like "CAS_{*"} | Get-Mailbox; $UserList | foreach {Get-MobileDeviceStatistics -Mailbox $_.Identity}