ldap vbscript : msExchOmaAdminWirelessEnable is randomly missing on different accounts

Posted by phill on Stack Overflow See other posts from Stack Overflow or by phill
Published on 2009-01-07T17:08:04Z Indexed on 2010/03/31 19:03 UTC
Read the original article Hit count: 442

In my script:

Function getDescript (strname, uname) 

    Set MyUser = GetObject ("LDAP://cn=" & uname & ",ou=" & strname & ",DC=tms-1,DC=net")

getDescript = myUser.Get("msExchOmaAdminWirelessEnable")
End Function

uname = "Bob Gardner"
strname = "bgConsultants"

WScript.Echo "wireless enable: " & getDescript(strname, uname)

I have noticed some users in the same OU sometimes do and sometimes don't have the msExchOmaAdminWirelessEnable attribute when I check it in sysinternals' ACtive Directory Explorer. All users are in the same OU and the exchange 2003 server has sp2 installed.

Anyone might know why this is?

Update: I figured out that if I disable and re-enable the Outlook Mobile Access setting for each user, the msExchOmaAdminWirelessEnable attribute shows up again for those users missing that attribute...weird..

© Stack Overflow or respective owner

Related posts about exchange

Related posts about ldap