报告从 Microsoft Exchange 服务器的 Exchange 组织的名称。
Visual Basic
On Error Resume Next
Set ObjRoot = GetObject(“LDAP://RootDSE”)
strConfigNC = ObjRoot.Get(“configurationNamingContext”)
Set colExchangeContainer = GetObject _
(“LDAP://CN=Microsoft Exchange,CN=Services,” & strConfigNC)
If Err = 0 Then
For Each objExchangeOrg In colExchangeContainer
If (objExchangeOrg.Class = “msExchOrganizationContainer”) Then
Wscript.Echo “Exchange Organization name: ” & _
objExchangeOrg.Get(“CN”)
End If
Next
Else
WScript.Echo “Exchange not installed.”
End If
Latest posts by Exchange中文站 (see all)
- 微软发布Azure PlayFab公众预览 - 2021年10月22日
- 微软发布全新云计算资料分析工具Azure Synapse - 2020年12月15日
- Exchange Server 版本号和发行日期汇总 - 2020年9月21日
发布于:
浏览:4139 次
还没有评论