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
book
Article ID: 100020013
calendar_today
Updated On:
Description
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}"
Resolution
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}"
Issue/Introduction
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
Was this article helpful?
thumb_up
Yes
thumb_down
No