Powershell errors
Hi there,
I've read the article about "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" dozen of times.
I have a server Win2003 SP2 R1 and Powershell installed. This is very much a 32bit system, so the article above does not apply.
When executing the command:
C:\Documents and Settings\user>powershell -psconsolefile "E:\Program Files\Enterprise Vault\EVShell.psc1" -command "& {set-vaultstorebackupmode -name 'VaultStoreGroup01' -evservername evserver01 -evobjecttype vaultstoregroup}" WARNING: The following errors occurred when loading console E:\Program Files\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. ...
I can execute from the windows\system32\windowspowershell\v1.0\ directory or whereever. It's always the same error. No Windows PowerShell Snap-ins are available for version 1.
Any ideas?
Thanks, Jochen.
So, I got it to work: I had to add the EV Powershell AddIn to Powershell. I got the hint from this article!
C:\Documents and Settings\%user%>C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\InstallUtil.exe "C:\Program Files\Enterprise Vault\Symantec.EnterpriseVault.PowerShell.Snapin.dll"
Afterwards, I did have the registry value as Lerxst pointed out. Afterwards, the Enterprise Vault Management Shell starts... and the scripts before/after backup work!
Everything is kind of slow when starting Powershell or the EV Mgt Shell, but this is a Powershell issue.
Just to let you guys know,
Jochen.