ldap vbscript:msExchOmaAdminWirelessEnable在不同帐户上随机丢失

时间:2022-03-25 02:59:57

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.

我注意到在同一个OU中有些用户有时会这样做,有时当我在sysinternals的ACtive Directory Explorer中检查它时,它没有msExchOmaAdminWirelessEnable属性。所有用户都在同一个OU中,Exchange 2003服务器安装了sp2。

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

更新:我发现如果我为每个用户禁用并重新启用Outlook Mobile Access设置,msExchOmaAdminWirelessEnable属性会再次显示缺少该属性的用户...很奇怪..

2 个解决方案

#1


The answer is right, the user attribute msExchOmaAdminWirelessEnable value is default empty (oma is working). When oma is disabled the value is 7 (4+2+1), when oma is then enabled again the value is 0. I have made some oma scripts, they can be found at:

答案是对的,用户属性msExchOmaAdminWirelessEnable值默认为空(oma正在工作)。当oma被禁用时,值为7(4 + 2 + 1),当oma再次启用时,值为0.我已经制作了一些oma脚本,可以在以下位置找到:

http://deludi.nl/blog/vbscript/active-directory/outlookmobileaccess/active-directory-vbscript-to-disable-outlook-mobile-access-oma-for-all-users-in-your-company/

#2


According to Microsoft, By default, when you install Microsoft Exchange Server 2003, the option to permit all users to use Microsoft Outlook Mobile Access is turned on in Active Directory Users and Computers. So this would leave me to believe that this value is only prensent fo an account inwhich the setting has been toggled. You could probably do an easy ADSI to return back only the users that don't have this setting set, or not set to enable see here for a good ADSI reference: http://www.rlmueller.net/ADOSearchTips.htm

根据Microsoft,默认情况下,当您安装Microsoft Exchange Server 2003时,在Active Directory用户和计算机中打开了允许所有用户使用Microsoft Outlook Mobile Access的选项。因此,这将使我相信这个值仅仅是设置已被切换的帐户。您可以做一个简单的ADSI,只返回没有设置此设置的用户,或者不设置为启用,请参阅此处获取良好的ADSI参考:http://www.rlmueller.net/ADOSearchTips.htm

"By default, when you install Microsoft Exchange Server 2003, the option to permit all users to use Microsoft Outlook Mobile Access is turned on in Active Directory Users and Computers."

“默认情况下,当您安装Microsoft Exchange Server 2003时,在Active Directory用户和计算机中启用了允许所有用户使用Microsoft Outlook Mobile Access的选项。”

#1


The answer is right, the user attribute msExchOmaAdminWirelessEnable value is default empty (oma is working). When oma is disabled the value is 7 (4+2+1), when oma is then enabled again the value is 0. I have made some oma scripts, they can be found at:

答案是对的,用户属性msExchOmaAdminWirelessEnable值默认为空(oma正在工作)。当oma被禁用时,值为7(4 + 2 + 1),当oma再次启用时,值为0.我已经制作了一些oma脚本,可以在以下位置找到:

http://deludi.nl/blog/vbscript/active-directory/outlookmobileaccess/active-directory-vbscript-to-disable-outlook-mobile-access-oma-for-all-users-in-your-company/

#2


According to Microsoft, By default, when you install Microsoft Exchange Server 2003, the option to permit all users to use Microsoft Outlook Mobile Access is turned on in Active Directory Users and Computers. So this would leave me to believe that this value is only prensent fo an account inwhich the setting has been toggled. You could probably do an easy ADSI to return back only the users that don't have this setting set, or not set to enable see here for a good ADSI reference: http://www.rlmueller.net/ADOSearchTips.htm

根据Microsoft,默认情况下,当您安装Microsoft Exchange Server 2003时,在Active Directory用户和计算机中打开了允许所有用户使用Microsoft Outlook Mobile Access的选项。因此,这将使我相信这个值仅仅是设置已被切换的帐户。您可以做一个简单的ADSI,只返回没有设置此设置的用户,或者不设置为启用,请参阅此处获取良好的ADSI参考:http://www.rlmueller.net/ADOSearchTips.htm

"By default, when you install Microsoft Exchange Server 2003, the option to permit all users to use Microsoft Outlook Mobile Access is turned on in Active Directory Users and Computers."

“默认情况下,当您安装Microsoft Exchange Server 2003时,在Active Directory用户和计算机中启用了允许所有用户使用Microsoft Outlook Mobile Access的选项。”