ldap vbscript:msExchOmaAdminWirelessEnable 在不同帐户上随机丢失
在我的脚本中:
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)
当我在 sysinternals 的 Active Directory 资源管理器中检查 msExchOmaAdminWirelessEnable 属性时,我注意到同一 OU 中的某些用户有时有 msExchOmaAdminWirelessEnable 属性,有时没有。 所有用户都在同一个 OU 中,并且 Exchange 2003 服务器安装了 sp2。
有人可能知道这是为什么吗?
更新: 我发现,如果我为每个用户禁用并重新启用 Outlook Mobile Access 设置,则 msExchOmaAdminWirelessEnable 属性会再次为那些缺少该属性的用户显示......奇怪......
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..
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
答案是正确的,用户属性
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/< /a>
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:http://deludi.nl/blog/vbscript/active-directory/outlookmobileaccess/active-directory-vbscript-to-disable-outlook-mobile-access-oma-for-all-users-in-your-company/
根据 Microsoft 的说法,默认情况下,当您安装 Microsoft Exchange Server 2003 时,允许所有用户使用 Microsoft Outlook Mobile Access 的选项在 Active Directory 用户和计算机中处于打开状态。 因此,这会让我相信该值仅存在于已切换设置的帐户中。 您可能可以执行一个简单的 ADSI 来仅返回未设置此设置或未设置为启用的用户,请参阅此处以获得良好的 ADSI 参考: http://www.rlmueller.net/ADOSearchTips.htm
“默认情况下,当您安装 Microsoft Exchange Server 2003 时,允许所有用户使用 Microsoft Outlook Mobile Access 的选项在 Active Directory 用户和计算机中处于打开状态。”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
"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."