05-15-2009 11:19 AM
psexec \\evserver cmd /c "echo . | powershell -psconsolefile ^"C:\Program Files\Enterprise Vault\EVShell.psc1^" get-command -pssnapin symantec.enterprisevault.powershell.snapin"Loading the pconsolefile to invoke an EV cmdlet does not work. So what I am trying to do is of the following format:
psexec \\evserver cmd /c "echo . | powershell -psconsolefile "C:\Program Files\Enterprise Vault\EVShell.psc1" -command "& {Get-IndexLocationBackUpMode EV8}""I have used innumerable permutations of escape characters: carat, double quote, single quote, etc. to try to find the magic combination. Invariably an error message resembling the following comes back:
'{Get-IndexLocationBackUpMode' is not recognized as an internal or external command, operable program or batch file. cmd exited on ev with error code 1.It seems to have problems passing the ampersand to the remote server. It would be nice to have the EV8 snapin permanently registered so I don't need to load the psc1 file.
05-15-2009 02:22 PM
05-16-2009 04:51 AM
07-16-2009 02:29 AM
07-16-2009 10:07 PM
08-20-2009 04:35 AM