cancel
Showing results for 
Search instead for 
Did you mean: 

Facing issue with importing process using AutomateC.exe from my script

YogeshAdsare
Level 2
Hi All, I am trying to import process in BluePrism using the command line option i.e AutomateC.exe in my automation but facing an issue while calling automation scripts from outside VM "Login failed: Local System accounts, guest accounts and anonymous user credentials are not compatible with a single sign-on configuration "

If I use the below code snippet in Actual VM where my BluePrism is present, I am able to import the process. but when I use same code in my script then it gives me the above error.
Set-Location -Path "Path-till-AutomateC.exe-dir"
$importProcessStatus = .\AutomateC.exe /importrelease "path-of-release" /sso 

Note. Since I am using /SSO switch so for that I am executing those commands in a specific user context and that user has already access for BluePrism.

Invoke-Command -Computername "computername" -Credential $Cred -ScriptBlock {
   Set-Location -Path "Path-till-AutomateC.exe-dir"
   $importProcessStatus = .\AutomateC.exe /importrelease "path-of-release" /sso 
}

 


------------------------------
Yogesh Adsare
------------------------------
2 REPLIES 2

gmarquez
Level 6
Hi Yogesh,

Is your Blue Prism environment set up to use SSO?  It sounds like it isn't and you will have to use the /user switch instead.  If it is set to SSO, then you might need to use the RunAs command to set the user running the command line.  

All the best,

Gabe

------------------------------
Gabe Marquez
Technical Support Engineer
Blue Prism
------------------------------

Hi Gabe,
Our Blue Prism environment set to use SSO login only. However, if we try above commands in actual VM where our Blue Prism client exist then I am able to import the process but when I execute same commands from my PowerShell script on the VM using the below command

Invoke-AzVMRunCommand -ResourceGroupName $rgName -VMName $vmName  -CommandId 'RunPowerShellScript' -ScriptPath '.\TestScripts\ImportProcessCommand.ps1'

then I am getting error "Login failed: Local System accounts, guest accounts and anonymous user credentials are not compatible with a single sign-on configuration"

And in that ImprtProcessCommands.ps1 file we have below code snippet.

Invoke-Command -Computername "computername" -Credential $Cred -ScriptBlock {
   Set-Location -Path "Path-till-AutomateC.exe-dir"
   $importProcessStatus = .\AutomateC.exe /importrelease "path-of-release" /sso 
}





------------------------------
Yogesh Adsare
------------------------------