I've tested it and it works well.
One problem I'm having is getting it to execute when using Poweshell remoting. I need to be able execute a powershell from an Orchestrator runbook. My script:
$securePassword = ConvertTo-SecureString "password" -AsPlainText -force
$credential = New-Object System.Management.Automation.PsCredential("domain\vaultserviceaccount",$securePassword)
$s = new-pssession -computer evserver.domain.com -ConfigurationName Microsoft.PowerShell32 -credential $credential
invoke-command -Session $s { import-module "c:\program files (x86)\quadrotech\archive leavers\archiveleavers.dll" }
#invoke-command -Session $s { set-archiveleaver -setconfig -evsqlserver sql.domain.com -tempfolder e:\archiveleaverstemp -retentioncategory "Default Retention Category" }
invoke-command -Session $s { set-archiveleaver -mbxalias user }
The output from this command is:
Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'.
+ CategoryInfo : NotSpecified: (:) [Set-ArchiveLeaver], SqlException
+ FullyQualifiedErrorId : System.Data.SqlClient.SqlException,QUADROtech.ArchiveLeavers.ArchiveLeaver