0

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.

Community
  • 1
  • 1
phill
  • 13,434
  • 38
  • 105
  • 141
  • Is this a duplicate of http://stackoverflow.com/questions/338428 ? – VonC Feb 16 '09 at 06:58
  • no it is not. I've been trying to figure out how to run this on a server running exchange 2003 server. The other question addresses it with exchange 2007 – phill Feb 16 '09 at 07:49
  • @Phill: Feel free to remove my edit. You should make the distinction clear in the question. It is in the tags, but honestly, I think many people don't read the tags too thoroughly. – Tomalak Feb 16 '09 at 07:57
  • sorry for being ambiguous..i'll make it more clear – phill Feb 16 '09 at 08:13

1 Answers1

0

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
kit
  • 1,166
  • 5
  • 16
  • 23
Shay Levy
  • 121,444
  • 32
  • 184
  • 206