i am trying to run following script to deploy agent via powershell but i am getting error again and again . can anyone point the mistake .. i made..
Invoke-SwisVerb : One or more errors occurred.
At C:\Script-Tools\Deploy_of_agentbase_device.ps1:42 char:1
+ Invoke-SwisVerb -SwisConnection $SwisConnection -EntityName "Orion.Ag ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Invoke-SwisVerb], FaultException`1
+ FullyQualifiedErrorId : SwisError,SwisPowerShell.InvokeSwisVerb
$SwisCreds = Get-Credential -Message "Enter your Orion Creds"
$SwisConnection= Connect-Swis -Hostname "xx.xx.xx.xx" -Credential $SwisCreds
$SwisConnection
$pollingEngineId = 1
$agentName = "test"
$hostname = "test"
$ipAddress = "xx.x.x.x"
$machineUserName = "administrator"
$machinePassword = "Admin"
$additionalUsername= ""
$additionalPassword = ""
$passwordIsPrivateKey= $false
$privateKeyPassword = ""
$agentMode = 1
$installPackageFallbackId = ""
Invoke-SwisVerb -SwisConnection $SwisConnection -EntityName "Orion.AgentManagement.Agent" -Verb "Deploy" -Arguments ($pollingEngineId,$agentName, $hostname,$ipAddress,$machineUserName,$machinePassword,$additionalUsername,$additionalPassword,$passwordIsPrivateKey,$privateKeyPassword,$agentMode,$installPackageFallbackId)