Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
strTitle="Storage Group Report"
strServer=InputBox("What is the name of the Exchange Server?",strTitle,"TANK")
SGReport strServer
WScript.Quit
Sub SGReport(strServer)
Dim iServer
Dim iSGs
Dim iMBS
Set iServer=CreateObject("CDOEXM.ExchangeServer")
Set iSGs=CreateObject("CDOEXM.StorageGroup")
Set iMBs=CreateObject("CDOEXM.MailboxStoreDB")
iServer.DataSource.Open strServer
arrSGs=iServer.StorageGroups
For i=0 To UBound(arrSGs)
strSGUrl=arrSGs(i)
'WScript.Echo strSGUrl
iSGs.DataSource.Open "LDAP://" & iServer.DirectoryServer & "/" & strSGUrl
strData=strData & iSGs.Name & VBCRLF
strData=strData & vbTab & "LogPath: " &iSGs.LogFilePath & VBCRLF
strData=strData & vbTab & "SystemPath:" & iSGs.SystemFilePath & VBCRLF
strData=strData & " MailBox Stores:" & VBCRLF
arrMBStores=iSGs.MailboxStoreDBs
For j=0 To UBound(arrMBStores)
iMBS.DataSource.open "LDAP://" & arrMBStores(j)
strData=strData & vbTab & iMBS.Name & VbCrLf
Next
Next
WScript.Echo strData
End sub