cancel
Showing results for 
Search instead for 
Did you mean: 

Will EV be enabled by setting MbxArchivingState to 1??

daiyoko
Level 4
I would like to ask if the altering of MbxArchivingState in database will cause the corresponding change in Outlook

e.g.
A user's MbxArchivingState is 0
then, I set it to 1

Will this action cause the user's EV being enable in Outlook???

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions

MichelZ
Level 6
Partner Accredited Certified
Hi there

Just   RTFM -> Read The Fine Manual. :)
On Page 171 in Utilities.pdf (8.0 SP2), the title is "Using the Provisining API to run Policy Manager scripts":



\'
' Enable a mailbox
'
Dim Enabler
Set Enabler = CreateObject("EnterpriseVault.ExchangeArchivePoint")
Enabler.Directory = "MACHINE1"
Enabler.Site = "site1" '(Entry Id or Site Name)
Enabler.ExchangeServer = "DITTO" '(Entry Id or Exchange Name)
Enabler.SystemMailbox = "EnterpriseVault-DITTO"
Enabler.MailboxDN = "/o=Eng2000/ou=First Administrative Group/cn=Recipients/cn=Bruiser"
Enabler.VaultStore = "VaultStoreMain" '(Entry Id or Vault Store Name)
Enabler.RetentionCategory = "Business" '(Entry Id or Retention Category Name)
Enabler.IndexingService = "MACHINE1"
Enabler.Enable



''
Disable a mailbox
'
Dim Enabler
Set Enabler = CreateObject("EnterpriseVault.ExchangeArchivePoint")
Enabler.Directory = "MACHINE1"
Enabler.Site = "site1" '(Entry Id or Site Name)
Enabler.ExchangeServer = "DITTO" '(Entry Id or Exchange Name)
Enabler.SystemMailbox = "EnterpriseVault-DITTO"
Enabler.MailboxDN = "/o=Eng2000/ou=First Administrative Group/cn=Recipients/cn=Bruiser"
Enabler.Disable


You can achieve the same using EVPM only (not vbscript):

[Directory]
DirectoryComputername = ev.demo.local
SiteName = DEMO

[Mailbox]
DistinguishedName = /o=ORG/ou=First Administrative Group/cn=Recipients/cn=MichelZ

[Folder]
Name = Mailboxroot
Enabled = True

Cheers



cloudficient - EV Migration, creators of EVComplete.

View solution in original post

14 REPLIES 14

Wayne_Humphrey
Level 6
Partner Accredited Certified
No it wont.

What would be your reasoning for doing this?

--wayne

MichelZ
Level 6
Partner Accredited Certified
If you want to automate things, then use the ProvisioningAPI for this.
I think there is an example on how to use it in the Utilities.pdf guide in documentations.

Cheers

cloudficient - EV Migration, creators of EVComplete.

daiyoko
Level 4
I want to do this because there are about 5000 staffs,
and using the provisioning task can't match with the "quiteria" I needed i.e. the LDAP query.
The LDAP query use to select "particular" staffs works on dsa.msc,
but failed in provisioning task (Saying that there are no return value or something).
So, I would like to ask for the details steps that the provisioning task do.
Then, I could manually write scripts to carry out the EV enable task.



daiyoko
Level 4
Where could I find the "ProvisioningAPI" and Utilities.pdf.

Thanks

TonySterling
Moderator
Moderator
Partner    VIP    Accredited Certified
did you get an error in the event log when you tried your ldap query?

The utilities guide is part of the install docs.  I think you will need to be part of STEP (partner) program to get the API. 

Paul_Grimshaw
Level 6
Employee Accredited Certified
you need to look into why your LDAP query will not work.
Once you get provisioning running then you can use EVPM to enable mailboxes from a script perspective
Changing the SQL entry is a no no as Wayne has already informed you as this will not trigger the work we need to do to enable the mailbox i.e Implement hidden message into the mailbox.

daiyoko
Level 4

Below is the LDAP that caused error:
imagebrowser image

TonySterling
Moderator
Moderator
Partner    VIP    Accredited Certified
Hey mate,

What version of EV are you using?  I was just working around in my EV 8 sp1 lab and recreated your ldap to some extent and it worked somewhat. ;)


Could you try this remove the  (employeeType=Contract Staff) and see if that returns results.  If it does you could just add a second LDAP query for that query.

daiyoko
Level 4
Thank you for your reply.
My EV version is 7.5.
Actually, if I remove the employeeType, it does work.
So, you mean by "add a second LDAP query for that query" is????

AndrewB
Moderator
Moderator
Partner    VIP    Accredited
I suppose you could create another provisioning group for "Contract Staff".

Michael_Bilsbor
Level 6
Accredited
hiya,

Why not just script the creation of an EVPM script and do it that way?

TonySterling
Moderator
Moderator
Partner    VIP    Accredited Certified
What I mean is you can add multiple targets for 1 provisioning group.  So if the query for your target works without contract staff create a new target that queries for contract staff without Permanent Staff.

daiyoko
Level 4
Could you please provide a sample for such script?

MichelZ
Level 6
Partner Accredited Certified
Hi there

Just   RTFM -> Read The Fine Manual. :)
On Page 171 in Utilities.pdf (8.0 SP2), the title is "Using the Provisining API to run Policy Manager scripts":



\'
' Enable a mailbox
'
Dim Enabler
Set Enabler = CreateObject("EnterpriseVault.ExchangeArchivePoint")
Enabler.Directory = "MACHINE1"
Enabler.Site = "site1" '(Entry Id or Site Name)
Enabler.ExchangeServer = "DITTO" '(Entry Id or Exchange Name)
Enabler.SystemMailbox = "EnterpriseVault-DITTO"
Enabler.MailboxDN = "/o=Eng2000/ou=First Administrative Group/cn=Recipients/cn=Bruiser"
Enabler.VaultStore = "VaultStoreMain" '(Entry Id or Vault Store Name)
Enabler.RetentionCategory = "Business" '(Entry Id or Retention Category Name)
Enabler.IndexingService = "MACHINE1"
Enabler.Enable



''
Disable a mailbox
'
Dim Enabler
Set Enabler = CreateObject("EnterpriseVault.ExchangeArchivePoint")
Enabler.Directory = "MACHINE1"
Enabler.Site = "site1" '(Entry Id or Site Name)
Enabler.ExchangeServer = "DITTO" '(Entry Id or Exchange Name)
Enabler.SystemMailbox = "EnterpriseVault-DITTO"
Enabler.MailboxDN = "/o=Eng2000/ou=First Administrative Group/cn=Recipients/cn=Bruiser"
Enabler.Disable


You can achieve the same using EVPM only (not vbscript):

[Directory]
DirectoryComputername = ev.demo.local
SiteName = DEMO

[Mailbox]
DistinguishedName = /o=ORG/ou=First Administrative Group/cn=Recipients/cn=MichelZ

[Folder]
Name = Mailboxroot
Enabled = True

Cheers



cloudficient - EV Migration, creators of EVComplete.