Re: Retrieving the Envelope Journaling Settings
- From: "Glen Scales [MVP]" <gscales@xxxxxxxxxxxxxxxxxxx>
- Date: Thu, 30 Oct 2008 15:39:48 +1100
Envelope Journaling setting are organization wide setting you can get/set
them using ADSI,LDAP,System.directoryservices see
http://technet.microsoft.com/en-us/library/aa996701(EXCHG.65).aspx for the
attirbute details.
3. This informatin is stored in AD you can use ADSI (or
System.DirectorySercies) to get this as well eg
param([String] $samaccountname)
$root = [ADSI]'LDAP://RootDSE'
$dfDefaultRootPath = "LDAP://" + $root.DefaultNamingContext.tostring()
$dfRoot = [ADSI]$dfDefaultRootPath
$gfGALQueryFilter = "(&(&(&(&
(mailnickname=*)(objectCategory=person)(objectClass=user)(samaccountname=" +
$samaccountname + ")))))"
$dfsearcher = new-object System.DirectoryServices.DirectorySearcher($dfRoot)
$dfsearcher.Filter = $gfGALQueryFilter
$srSearchResult = $dfsearcher.FindOne()
if ($srSearchResult -ne $null){
$uoUserobject = $srSearchResult.GetDirectoryEntry()
$msStore = [ADSI]("LDAP://" + $uoUserobject.homemdb)
$soServer = [ADSI]("LDAP://" + $msStore.msExchOwningServer)
$sgStorageGroup = $msStore.psbase.Parent
"User DisplayName : " + $uoUserobject.displayName
"Mail Server : " + $soServer.Name
"Exchange Version : " + $soServer.SerialNumber
"Mailbox Store : " + $msStore.Name
"Storage Group : " + $sgStorageGroup.Name
}
Cheers
Glen
"Rashmi" <Rashmi@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:3E8CC199-B357-4182-9C8C-8B89AB0FC822@xxxxxxxxxxxxxxxx
Hi,
Im trying to develop an application to read the mails from the journal
mailbox.
I would like to get information on the below before I start my
development.
I had used EPA(Exchange server Profile Analyser) tool but didn't get any
information related to Envelope Journal settings.
1. Are there any API's through which I can get the Envelope Journal
settings
on the Exchange Server?
2. Is there any API to enable/disable the envelope journaling?
3. Given the user details, how can I determine the Storage Group/Mailbox
Store of that user?
.
- Follow-Ups:
- Re: Retrieving the Envelope Journaling Settings
- From: Rashmi
- Re: Retrieving the Envelope Journaling Settings
- References:
- Retrieving the Envelope Journaling Settings
- From: Rashmi
- Retrieving the Envelope Journaling Settings
- Prev by Date: Retrieving the Envelope Journaling Settings
- Next by Date: Re: Retrieving the Envelope Journaling Settings
- Previous by thread: Retrieving the Envelope Journaling Settings
- Next by thread: Re: Retrieving the Envelope Journaling Settings
- Index(es):