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
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));
}
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));
}
Get-EVArchive -ArchiveName "TEST_USER" | Set-EVArchivePermission -Trustee EV\TEST_USER2 -Grant Read,Write,Delete