Link to home
Create AccountLog in
Powershell

Powershell

--

Questions

--

Followers

Top Experts

Avatar of teggra
teggra🇨🇭

Enterprise Vault: Automation - Force full Archive Mailbox, how to?
Hi All,

Product: Enterprise Vault 12

Current situation:
How to FULLY archive a mailbox, force

I have to manually assign the leaver policy (means everything will be archived) to a user, restart ev provisioning services
and start a run mailbox job via the mailbox archive task.

Question:
How can i automate this procedure?
I didn't found any way by using the EVPowerShell or the EVPM scripts with the .ini files.

Goal:
Working on a leaver process to force full archiving of the mailbox and after finishing this process to delete the user from AD/Exchange.


My thoughts:
The only way I found so far is with manual interaction;
Automation via PowerShell:
- Add the user to the specified group where a fully archive policy is assigned
- wait for the scheduled provisioning task to restart (e.g. set to 09pm)
- Mailbox will be archived (but only until the max amount of files have reached e.g. 1000)

Manual task:
- Check the reporting page if all objects have been archived
=> Proceed with deleting the account

This process is a bit annoying.

Any other ideas how to automate the force archive process?

many thanks
regards, Teggra

Zero AI Policy

We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.


Avatar of teggrateggra🇨🇭

ASKER

Hi all,
Any hints or thoughts?

Thanks and regards

Avatar of Dustin SaundersDustin Saunders🇺🇸

So you want to automate this process?
https://www.veritas.com/support/en_US/article.000029044

You can automate the generation of the .ini and invoke the command line referenced easy enough in Powershell.  I'd have to take a peek at the EVCLI to give any hints on the way to invoke the application level items (I don't have the product), have you got anything started in code yet?

Avatar of teggrateggra🇨🇭

ASKER

Hi Dustin,
Thanks for the comment.

Currently I'm still on the draft board - so no scripts around. Looking for options.

The perfect solution will be;
User leave company = The full Mailbox will be immediately archived


I saw the link you posted already. But with the INI file I'm just able to SET the policy for the mailbox,
but executed must be manually via RunNow Job in the GUI of enterprise vault.
Can we automate this via any shell  -  the runnow for a mailbox for unlimited objects.

The powershell cli from enterprise vault is very limited and you can't process this task from my point of view.
The evpm is used mainly to set the policies and e.g. trigger an pst import process.

Many thanks for the hints
regards
Teggra

Reward 1Reward 2Reward 3Reward 4Reward 5Reward 6

EARN REWARDS FOR ASKING, ANSWERING, AND MORE.

Earn free swag for participating on the platform.


Avatar of Dustin SaundersDustin Saunders🇺🇸

As mentioned, I don't have the product but hopefully we can get it going in the right direction here.

Is the FSARunNow command not what you need for that?  Can you make a sample job and experiment with that to fire it off?  Potentially some data may potentially be needed from SQL to use the task, if so that can be gained via Powershell.
https://www.veritas.com/support/en_US/article.v8824317_v89941664

Deleting the user from AD/Exchange is a very simple process.  You can use Remote-Mailbox (https://technet.microsoft.com/en-us/library/aa995948(v=exchg.160).aspx) and Remove-ADUser (https://technet.microsoft.com/en-us/library/ee617206.aspx) for those tasks.

In the past I've had similar tasks automated.  I generally track things in a sql express database and use Powershell to handle tasks.

>Powershell runs to disable the user and any other places where access to the environment may be possible.
>Resets passwords as needed on items based off Group Membership and updates our vault with the new generated ones.
>Queue up an archiving task that runs and moves a last copy of the user's data to an archive location (both file server & PC locations).
>Fires the Backup Exec job to run an incremental on the long term archive job.
>Updates the table that the task was completed successfully after run.
>Leaves the user in a disabled state for 7 days in a SQL table that schedules the deletions in SQL table.
>7 days later the user account & mailbox is deleted via scheduled task that checks table for any deletions to do that day.

ASKER CERTIFIED SOLUTION
Avatar of teggrateggra🇨🇭

ASKER

Link to home
membership
Log in or create a free account to see answer.
Signing up is free and takes 30 seconds. No credit card required.
Create Account

Avatar of teggrateggra🇨🇭

ASKER

My solution is a short workaround:
1) I will export the exchange mailbox to pst
2) I will create the .ini file for EVPM via script and change the required variables
3) I will execute the evpm with the ini file to import the pst into the ev archive (only non-archived objects will be imported to the archive)
Powershell

Powershell

--

Questions

--

Followers

Top Experts

Windows PowerShell is a task automation and configuration management framework from Microsoft, consisting of a command-line shell and associated scripting language built on the .NET Framework. PowerShell provides full access to the Component Object Model (COM) and Windows Management Instrumentation (WMI), enabling administrators to perform administrative tasks on both local and remote Windows systems as well as WS-Management and Common Information Model (CIM) enabling management of remote Linux systems and network devices.