PowerShell Exchange 2003 quest: Is there a way to query if ActiveSync is enabled?

1k Views Asked by At

Using Quest PowerShell on a Windows 2003 Server running Exchange 2003, is there a way to query if a user's ActiveSync or OMA is enabled or disabled?


EDIT: This is arguably a duplicate of your own question from Dec. 3, 2008.

EDIT: That question referred to Exchange 2007.

1

There are 1 best solutions below

1
On

Try this code:

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