In Enterprise Vault 11.0, there are many PowerShell commands introduced.
This is an introduction to how to get started.
- Start “Enterprise Vault Management Shell”
- By default, new commands introduced in EV 11 will result in an error.
- You have to manually load these 5 modules .
Symantec.EnterpriseVault.PowerShell.AdminAPI.dll Symantec.EnterpriseVault.PowerShell.Core.dll Symantec.EnterpriseVault.PowerShell.IMAP.dll Symantec.EnterpriseVault.PowerShell.Monitoring.dll Symantec.EnterpriseVault.PowerShell.Snapin.dll
This is an easy to import them and confirm they are loaded by Get-module command.
PS> Get-ChildItem -Filter *PowerShell*dll | %{ Import-Module $_.FullName} PS> (Get-Module).Name
- Next, you want to know what kind of commands are available.
You can go to the document here or you can list them by Get-Command.PS> get-command -Module Symantec.EnterpriseVault.PowerShell* |Sort-Object ModuleName |ft -AutoSize
- To understand the usage of each commands, you can reference the document or do get-help.
- Since this is PowerShell , little formatting like the following makes the output nice.
PS> Get-EVTask |%{ [pscustomobject]@{State=(Get-EVTaskState $_.EntryID);Name=$_.name;}}|ft -auto