When attempting to run the Enterprise Vault PowerShell snap-in through a Command Prompt or a Batch Shell Script a Warning that the snap-in could not be loaded is generated

Problem

When attempting to run the Enterprise Vault PowerShell snap-in through a Command Prompt or a Batch Shell Script a Warning that the snap-in could not be loaded is generated

Error Message

WARNING: The following errors occured when loading console C:\Program Files (x86)\Enterprise Vault\EVShell.psc1:
Cannot load Windows PowerShell snap-in Symantec.
EnterpriseVault.PowerShell.Snapin because of the following error: No Windows PowerShell Snap-ins are available for version 1.

Cause

This issue could be caused due to the "Symantec.EnterpriseVault.PowerShell.Snapin.dll" being a 32-bit PowerShell Snap-In, and the default Powershell.exe is the 64-bit version.  Attempting to run the following command would produce the above warning (modified slightly from Page 11 of the "Backing up Enterprise Vault: 8.0 and later" guide):

PowerShell -PSConsolefile "C:\Program Files (x86)\Enterprise Vault\EVShell.psc1" -command "& {Set-VaultStoreBackupMode -Name 'Vault Store Group' -EVServerName server1 -EvObjectType VaultStoreGroup}"

Solution

To resolve this issue the 32-bit version of PowerShell needs to be explicitly used in the command, therefore the above command would need to be modified as follows:
 
C:\Windows\SysWOW64\WindowsPowerShell\v1.0\PowerShell.exe -PSConsolefile "C:\Program Files (x86)\Enterprise Vault\EVShell.psc1" -command "& {Set-VaultStoreBackupMode -Name 'Vault Store Group' -EVServerName server1 -EvObjectType VaultStoreGroup}"

Terms of use for this information are found in Legal Notices.

Search

Survey

Did this article answer your question or resolve your issue?

No
Yes

Did this article save you the trouble of contacting technical support?

No
Yes

How can we make this article more helpful?

Email Address (Optional)