Public Folder

Home Forums Scripting General Scripting Public Folder

Viewing 1 post (of 1 total)
  • Author
    Posts
  • Avatar
    ekrengel
    Member
    #126304

    Does anyone know the right code to get all public fodlers in a Windows 2003 Exchange environment…I found this, but it doesn’t work:

    strComputer = “.”
    Set objWMIService = GetObject(“winmgmts:” _
    & “{impersonationLevel=impersonate}!\” & strComputer & _
    “ROOTMicrosoftExchangeV2”)

    Set colItems = objWMIService.ExecQuery _
    (“Select * from Exchange_PublicFolder”)[/CODE]

    Thanks to anyone who can help…what I need back from it is the foldername and an email address if there is one attached to it.[CODE]strComputer = “.”
    Set objWMIService = GetObject(“winmgmts:” _
    & “{impersonationLevel=impersonate}!\” & strComputer & _
    “ROOTMicrosoftExchangeV2”)

    Set colItems = objWMIService.ExecQuery _
    (“Select * from Exchange_PublicFolder”)[/CODE]

    Thanks to anyone who can help…what I need back from it is the foldername and an email address if there is one attached to it.

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.