Get-EVArchive cmdlet does not work on remote server with standalone Enterprise Vault admin console (VAC)

book

Article ID: 100055028

calendar_today

Updated On:

Description

Error Message

Get-EVArchive : Value does not fall within the expected range.
At line:1 char:1
+ Get-EVArchive -ArchiveName "TEST_USER" | Set-EVArchiveP ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Get-EVArchive], ArgumentException
    + FullyQualifiedErrorId : System.ArgumentException,Symantec.EnterpriseVaul
   t.PowerShell.Commands.GetEVArchive

 

Cause

While running the command Get-EVArchive on the EV server, the cmdlet code reads the SiteID to be used from the registry keys during the Roles Based Administration (RBA) check. However, as the remote server does not have Enterprise Vault installed and only has a standalone VAC, the SiteID registry key is not present   


file- ~/Vault/Source/Vault.NET/EVPSSnapin/Archives/PowerShell/GetArchives.cs
bool RBAAccessCheck(RBAOperationID operationID)
{return Convert.ToBoolean(_dirAdmin.RBAAccessCheck(Computer.SiteId,
(int)operationID
));
}

Resolution

Use the parameter -Server and mention the server which has EV installed. The cmdlet code would now perform the RBA check against the server mentioned in the command to retrieve the SiteID.

Syntax for the command:

Get-EVArchive -ArchiveName "TEST_USER" -Server EVSERVER | Set-EVArchivePermission -Trustee EV\TEST_USER2 -Grant Read,Write,Delete


The cmdlet code would show:        


bool RBAAccessCheck(RBAOperationID operationID)
{
return Convert.ToBoolean(_dirAdmin.RBAAccessCheck(Server,(int)operationID));
}

Issue/Introduction

While running the following command to get or set permissions on any archive using Enterprise Vault Management shell from a remote server with a standalone Vault Administration Console (VAC), an error is logged:
Get-EVArchive -ArchiveName "TEST_USER" | Set-EVArchivePermission -Trustee EV\TEST_USER2 -Grant Read,Write,Delete