VMware Cloud Community
ghaithsultaneh
Contributor
Contributor

invoke an external process

Hi all,

i am trying to invoke an external process using invoke an external script from vro.

the process is to provision a computer locally in the powershell host and to create a Blob-file .

the script is as the following :

$Cmd = @{

     FilePath = (Join-Path -Path ([System.Environment]::SystemDirectory) -ChildPath 'djoin.exe')

     ArgumentList = "/PROVISION /DOMAIN $DomainName /MACHINE $ComputerName /MACHINEOU $ComputerOU /SAVEFILE $ProvisioningFilePath "

     

     }      

        }

    try {

   

    Start-Process @Cmd -Credential $cred -wait -PassThru| Out-Null  

  

    }

    catch {

    #skip

     }

 

  $ProvisioningFilePath

 

}

when i run the script from powershell it works successfull , but once i invoke it from vro the workflow will work but without provisining any computer.

Reply
0 Kudos
1 Reply
KocPawel
Hot Shot
Hot Shot

Could you explain in details what are you doing and how?

I am not sure if it is your case but with PowerShell Host and invoking script was a problem when you use Kerberos authentication. It was connected with double hop.

Here are some links connected with PowerShell Host, vRO and invoking scripts. Take a look if it can help you.

https://vnuggets.com/2018/08/31/vro-with-powershell-credssp/

http://kaloferov.com/blog/using-credssp-with-the-vco-powershell-plugin/

Reply
0 Kudos