Powershell
--
Questions
--
Followers
Top Experts
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.
Any hints or thoughts?
Thanks and regards
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?
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






EARN REWARDS FOR ASKING, ANSWERING, AND MORE.
Earn free swag for participating on the platform.
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.
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
--
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.