I wrote a VBS script to start an app with different user, however i am still struggling to attach to the application afterwards:
set WshShell = WScript.CreateObject(""WScript.Shell"")
WshShell.Run ""RUNAS /noprofile /user:DOMANI\username "" & chr(34) & ""C:\Users\Public\#####.exe"" & "" >NUL"", 2, false
WScript.Sleep 300
WshShell.Sendkeys ""users password""
WScript.Sleep 300
WshShell.SendKeys ""{ENTER}""
set WshShell = nothing
I can invoke the VBS (or batch file) via Blue Prism, however attaching to it is failing. I guess because the process runs under a different username? specifying the username in the ""Attach"" stage did not help.
Glad for any support