03-12-2018 07:07 AM
I know this is not primarily a scripting community.
But I was wondering if anyone could help me with a script that would restart the archive tasks on all the EV servers?
I tried looking into the EV shell, but there are no cmdlets for archive tasks.
Solved! Go to Solution.
03-12-2018 08:01 AM
There is a little utility called EVService.exe which should be in your install folder (with a readme.txt file too) that can be used to contol services.
A little more information here too:
03-12-2018 07:52 AM - edited 03-12-2018 07:53 AM
Hi mate,
You could use net stop/start commands to restart the task controller service which will restart all the tasks.
NET Stop /Y "Enterprise Vault Task Controller Service"
NET Start /Y "Enterprise Vault Task Controller Service"
Have a look on this post too: https://vox.veritas.com/t5/Downloads/Powershell-script-to-restart-services-daily-between-0645-and/ta...
03-12-2018 08:01 AM
There is a little utility called EVService.exe which should be in your install folder (with a readme.txt file too) that can be used to contol services.
A little more information here too:
03-13-2018 12:30 AM
Thanks for this information.
I tried testing it with a single task, but it seems to be looking for a service:
.\EVService.exe stop server1 "Index Administration Task"
Response
Stopping Index Administration Task on server1.... Error: The specified service does not exist as an installed service.
Does it needs to be executed from the EV Shell? Or do I need to use the task ID?
03-13-2018 12:39 AM
The EV Service names are as follows:
EnterpriseVaultAdminService
"Enterprise Vault Directory Service"
EnterpriseVaultIndexingService
EnterpriseVaultShoppingService
EnterpriseVaultStorageService
EnterpriseVaultTaskControllerService
its only the directory service that has spaces in it.
03-13-2018 12:53 AM
Thanks G_Fry.
But, I am trying run the utility on the Archive Tasks.
03-13-2018 01:40 AM
oops my bad classic RTFQ.... I will okk in to it and post my findings.
03-13-2018 01:44 AM
Ok, it worked.
Had to use the FQDN of the server.
Thanks, will look into scripting this now.
03-15-2018 01:10 AM
We usually see multiple entries for the same journal mailbox in the J3 queues on journal archiving servers and hence we need to clear the J3 queues and restart the journal tasks again. We run the following powershell commands remotely on each of our journal archiving servers atleast once a day to stop the tasks, clear MSMQ entries, clear the MAPI profiles (Outlook 2013) and start the tasks.
For mailbox archiving servers, if required, we clear the A5 queues as well incase there are any stale entries from the previous scheduled run.
Stop-Service "EnterpriseVaultTaskControllerService"
Get-MsmqQueue | where {$_.queuename -like "*private$* j3*"} | Clear-MsmqQueue # for journal archiving servers
Get-MsmqQueue | where {$_.queuename -like "*private$* a5*"} | Clear-MsmqQueue # for mailbox archiving servers
Get-ChildItem -Path "HKCU:\Software\Microsoft\Office\15.0\Outlook\Profiles" | Where-Object {$_.PSChildName -like "EV_*"} | Remove-Item -Force -Recurse
Start-Service "EnterpriseVaultTaskControllerService"