Forum Discussion

Portugal's avatar
Portugal
Level 2
10 years ago

EV | Powershell | Enable Mailboxes for Archiving | How to?

Hi

I would like to automate this procedure using Powershell.

Do you have an example of a Powershell script which can be used?

When I manually enable the mailboxes for archive all I do is use the "Enable mailboxes for Archiving" > List all available mailboxes > New mailboxes only > select the user > go next Vault Store and Retention Category are defaults > next The mailboxe primary account   > next Immediatly using the default archivning settings > Finish

I will then create a shell so all I need to do is insert the username.

Thanks, P

 

 

  • there's really nothing to it if you use EVPM. it's fully covered in the Utilities.pdf that comes with EV. here's an example of an INI file for EVPM to enable a mailbox for archiving:

    [Directory]
    DirectoryComputerName= EVserver1
    SiteName = EVSite
    [Mailbox]
    DistinguishedName = /o=company/ou=department/cn=Recipients/cn=msmith
    [Folder]
    Name = mailboxroot
    Enabled = true

8 Replies

  • Fixed it by restarting the EV services in our cluster. Seems to be out of memory - started to get "out of storage errors" when trying to manually enable users.

    Btw what's the EV ServerInstance service? Anyone got a verified script to restart EV in a cluster please? 

  • We've been doing this on a new EV10 server for a couple of months. It was taking 15-20 mins to enable around 100 users but now it's taking about 3 hours! It seems to just pause between users. The archives are created correctly, no warnings or errors (apart from not finding the welcome message, which we never use.)

    Any idea why it's suddenly become slow please?

    Thanks.

  • Hello,

    I have a similar task to do. But I have a list of users do enable, and I already have the DN for all of them.

    Will it work if I simply put more than one line of 

    DistinguishedName = /o=company/ou=department/cn=Recipients/cn=msmith

    in the ini File? Or will I need one separate ini File for each user?

    Thank you,

    Best regards,

    Florian Reber

  • there's really nothing to it if you use EVPM. it's fully covered in the Utilities.pdf that comes with EV. here's an example of an INI file for EVPM to enable a mailbox for archiving:

    [Directory]
    DirectoryComputerName= EVserver1
    SiteName = EVSite
    [Mailbox]
    DistinguishedName = /o=company/ou=department/cn=Recipients/cn=msmith
    [Folder]
    Name = mailboxroot
    Enabled = true

  • Hi Everyone,

    Do you have a script ready to do this? Enable mailboxes for Vault.

    P

  • like rob said, user mailboxes can be enabled via script but you have to use EVPM. EVPM.exe could be called via powershell as part of another script or process. let us know if you have any further questions.