PowerShell Backup Scripts
Created: 09 May 2011 | 2 comments
Script to place Enterprise Vault Indexes into Backup Mode
This is quite a nice set of cmd & ps1 scripts to place Enterprise Vault Indexes into R/O mode. This is used for index snapshots as storage is on centera.
These scripts will return status codes and write entries into the Event Log.
C:\Windows\SysWOW64\WindowsPowerShell\v1.0\PowerShell -PSConsolefile "C:\Program Files (x86)\Enterprise Vault\EVShell.psc1" "C:\evbackup\BeginBackupScript.ps1" SERVERNAME
Where SERVERNAME is the name of the server the script will be executed from.
Return Status  is Success
Return Status  is Failed
If the server does not have internet access you may notice that it takes a long time to open.
The reason for this is powershell tries to download the CRL to check the authenticode signature on the Symantec Enterprise Vault snapin.
To work around this create a file called powershell.exe.config in
Windows x86 - Windows\System32\WindowsPowerShell\v1.0\
Windows x64 - Windows\SysWOW64\WindowsPowerShell\v1.0\
The powershell.exe.config file should contain the following:
You could also disable this in IE-
TOOLS/INTERNET OPTIONS --> ADVANCED --> scroll down to SECURITY --> uncheck "check for publishers certificate revocation"
If you recive the following error when trying to exicute the ps1:
File C:\evbackup\ReadOnly.ps1 cannot be loaded because the execution of scripts is disabled on this system.
Open Windows Power Shell and use one of the follwoing options for an execution policy