Use EVPM to disable multiple archives

Sharing a method that can be used when you are doing office 365 migrations & you want to disable /ZAP multiple archives.

Disabling the archives using GUI method is cumbersome & can take a lot of time.

We are running the EVPM command manually but you can schedule it as well.

For running the EVPM script command you need the following:

  • ini file that has multiple legacy DNs
  • Exchange mailbox server Name
  • Enterprise vault directory server
  • Enterprise Vault Site name
  • System Mailbox

For Disabling Archives below are the INI contents :


; DirectoryComputerName, add the simple name of the EV server where you will run this script.
; SiteName is the name of the site as it appears in the VAC.

[Directory]
DirectoryComputerName = EVServer1
SiteName = EVSITE

; Use the Distinguished Name of the mailbox to be zapped. You can get this by running the archiving task in report mode for that mailbox and viewing the resulting report.

[Mailbox]
DistinguishedName=/o=Labtest/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=User1
DistinguishedName=/o=Labtest/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=User2

[Folder]
Name = MailboxRoot
Enabled = False


For Zap below are the INI contents:


; DirectoryComputerName, add the simple name of the EV server where you will run this script.
; SiteName is the name of the site as it appears in the VAC.

[Directory]
DirectoryComputerName = EVServer1
SiteName = EVSITE

; Use the Distinguished Name of the mailbox to be zapped. You can get this by running the archiving task in report mode for that mailbox and viewing the resulting report.

[Mailbox]
DistinguishedName=/o=Labtest/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=User1
DistinguishedName=/o=Labtest/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=User2

[Folder]
Name = MailboxRoot
Zap = TRUE


After saving the ini file you can run the below commands on EV server from command prompt.

EVPM cmd resides inside the EnterpriseVault installation path(change to that directory inside command prompt)

\Program Files (x86)\Enterprise Vault

EVPM.EXE -e “Exchange Mailbox server ” -m “EV system Mailbox” -f C:\EVPM\EV_Disabled.ini

EVPM.EXE -e “Exchange Mailbox server ” -m “EV system mailbox” -f C:\EVPM\EV_ZAP.ini

You wll also need EV system mailbox that you have used in the archive task(See below)

You now have all the information & can do ZAP or disable for multiple user mailboxes.

Disable will disable user account in EV so that no further operations can be performed by the user,

ZAP will remove the Enterprisevault properties from user mailbox.

Note: We have used this process with version 9 & think that this will work with other versions as well.

Thanks for reading

Sukhija Vikas

http://SysCloudPro.com

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s