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..