Video Screencast Help
Symantec to Separate Into Two Focused, Industry-Leading Technology Companies. Learn more.

PowerShell Backup Scripts

Created: 09 May 2011 | 2 comments
Wayne Humphrey's picture
+3 3 Votes
Login to vote

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. 
 
Launch Syntax: 
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 [0] is Success 
Return Status [1] is Failed 
 
Other Information: 
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\ 
<configuration> 
  <runtime> 
   <generatePublisherEvidence enabled="false"/> 
  </runtime> 
</configuration> 
 
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 
Set-ExecutionPolicy Unrestricted 
Set-ExecutionPolicy RemoteSigned 
 

Comments 2 CommentsJump to latest comment

Rob.Wilcox's picture

Good info Wayne, thanks for sharing.

0
Login to vote
John Santana's picture

Thank you !

can this script called by another backup software ?

Kind regards,

John Santana
IT Professional

--------------------------------------------------

Please be nice to me as I'm newbie in this forum.

0
Login to vote