PowerShell Exchange 2003任务:有没有办法查询是否启用了ActiveSync?

时间:2009-02-16 06:48:35

标签: powershell active-directory activesync exchange-server-2003

在运行Exchange 2003的Windows 2003 Server上使用Quest PowerShell,有没有办法查询用户的ActiveSync或OMA是启用还是禁用?


编辑:这可以说是2008年12月3日your own question的重复。

编辑:该问题涉及Exchange 2007。

1 个答案:

答案 0 :(得分:0)

试试这段代码:

function Get-OmaAdminWirelessEnable($obj)
{
    switch($obj)
    {
        $null {"N/A"; break}
        0 {"Enabled"}
        1 {"ActiveSync is Disabled"; break}
        2 {"OMA is Disabled"; break}
        4 {"Disable Always Up-To-Date (AUTD)"; break}
        7 {"All ActiveSync Features disabled"; break}
        default {"Unknown"}
    }
}
$oma = @{name="OMA";expression={ Get-OmaAdminWirelessEnable 
$_.msExchOmaAdminWirelessEnable }}
Get-QADUser -sizeLimit 0 -IncludedProperties msExchOmaAdminWirelessEnable | 
select name,$oma