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.