phill
phill

Reputation: 13844

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

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.

Upvotes: 0

Views: 1083

Answers (1)

Shay Levy
Shay Levy

Reputation: 126702

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

Upvotes: 0

Related Questions