切换到宽版
  • 4278阅读
  • 0回复

[求助]使用脚本列出Exchange文件夹树信息 [复制链接]

上一主题 下一主题
 
只看楼主 倒序阅读 0楼  发表于: 2011-03-10
— 本帖被 YOYO 从 Exchange 脚本中心 移动到本区(2015-06-25) —
  • 脚本环境:Visual Basic
  • 适合版本:Exchange 2003
  • 适用平台:
  • 脚本作用:返回运行Microsoft Exchange Server 2003的文件夹树信息。
On Error Resume Next

strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
    & "{impersonationLevel=impersonate}!\\" & strComputer & _
        "\ROOT\MicrosoftExchangeV2")

Set colItems = objWMIService.ExecQuery _
    ("Select * from Exchange_FolderTree")

For Each objItem in colItems
    Wscript.Echo "Administrative group: " & _
        objItem.AdministrativeGroup
    Wscript.Echo "Administrative noe: " & _
        objItem.AdministrativeNote
    Wscript.Echo "Associated public stores: " & _
        objItem.AssociatedPublicStores
    Wscript.Echo "Creation time: " & objItem.CreationTime
    Wscript.Echo "GUID: " & objItem.GUID
    Wscript.Echo "Has local public store: " & _
        objItem.HasLocalPublicStore
    Wscript.Echo "Last modification time: " & _
        objItem.LastModificationTime
    Wscript.Echo "MAPI folder tree: " & objItem.MAPIFolderTree
    Wscript.Echo "Name: " & objItem.Name
    Wscript.Echo "Root folder URL: " & objItem.RootFolderURL
    Wscript.Echo
Next
分享到
快速回复
限60 字节
 
上一个 下一个