cancel
Showing results for 
Search instead for 
Did you mean: 

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

Portugal
Level 2

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

 

 

2 ACCEPTED SOLUTIONS

Accepted Solutions

Rob_Wilcox1
Level 6
Partner

Unless it has changed in EV 11.0.1, I don't think you can do this via PowerShell.

You can do it via EVPM though.

 

http://www.symantec.com/business/support/index?page=content&id=TECH37899

Working for cloudficient.com

View solution in original post

AndrewB
Moderator
Moderator
Partner    VIP    Accredited

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

View solution in original post

8 REPLIES 8

Rob_Wilcox1
Level 6
Partner

Unless it has changed in EV 11.0.1, I don't think you can do this via PowerShell.

You can do it via EVPM though.

 

http://www.symantec.com/business/support/index?page=content&id=TECH37899

Working for cloudficient.com

AndrewB
Moderator
Moderator
Partner    VIP    Accredited

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.

Portugal
Level 2

Hi Everyone,

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

P

AndrewB
Moderator
Moderator
Partner    VIP    Accredited

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

Elminster
Level 2

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

BruGuy
Level 6

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.

Rob_Wilcox1
Level 6
Partner

Have you done a DTRACE?

Working for cloudficient.com

BruGuy
Level 6

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?