Skip to main content
Question

Application launch via RDS generating invalid credential

  • November 4, 2025
  • 7 replies
  • 50 views

Forum|alt.badge.img+2

I am getting an invalid credential when launching a web application. I tested the managed account and password is correct but when I inject this using the ps_automate, it comes up with an invalid credential. I have also added the “FixupPassword=1” under the General section since my password contains spaces. Anything I am missing here or should be trying out?

 

2025/11/04 13:56:52 [TaskSequence1] BEGIN
2025/11/04 13:56:52 [Function] execute_task_sequence_webapp (TaskSequence1)
2025/11/04 13:56:52 [TaskSequence1] [INI] WaitLoginWindowDelay=0
2025/11/04 13:56:52 [TaskSequence1] [INI] XPathElement=//*[@id="username"]
2025/11/04 13:56:52 [TaskSequence1] [INI] XPathValue=%username%
2025/11/04 13:56:52 [TaskSequence1] [INI] XPathAction=
2025/11/04 13:56:52 [Function] insert_custom_strings (*MASKED*)
2025/11/04 13:56:52 [Custom string] username
2025/11/04 13:56:52 [TaskSequence1] END
2025/11/04 13:56:54 [TaskSequence2] BEGIN
2025/11/04 13:56:54 [Function] execute_task_sequence_webapp (TaskSequence2)
2025/11/04 13:56:54 [TaskSequence2] [INI] WaitLoginWindowDelay=0
2025/11/04 13:56:54 [TaskSequence2] [INI] XPathElement=//*[@id="password"]
2025/11/04 13:56:54 [TaskSequence2] [INI] XPathValue=%password%
2025/11/04 13:56:54 [TaskSequence2] [INI] XPathAction=
2025/11/04 13:56:54 [Function] insert_custom_strings (*MASKED*)
2025/11/04 13:56:54 [Custom string] password
2025/11/04 13:56:54 [TaskSequence2] END
2025/11/04 13:56:56 [TaskSequence3] BEGIN
2025/11/04 13:56:56 [Function] execute_task_sequence_webapp (TaskSequence3)
2025/11/04 13:56:56 [TaskSequence3] [INI] WaitLoginWindowDelay=5000
2025/11/04 13:56:56 [TaskSequence3] [INI] XPathElement=/html/body/div[3]/form[1]/div/input[3]
2025/11/04 13:56:56 [TaskSequence3] [INI] XPathValue=
2025/11/04 13:56:56 [TaskSequence3] [INI] XPathAction=click
2025/11/04 13:57:01 [TaskSequence3] END
2025/11/04 13:57:03 [TaskSequence] All sections processed.
2025/11/04 13:57:03 [Function] quit_script
 

7 replies

  • BeyondTrust Employee
  • 106 replies
  • November 5, 2025

Hello ​@Jasper 

Can you post your ini file here and the Application Command and Parameters you are using. 

I would like to give it a test.

I did test  ps_automate with spaces and it does pass the space through to the application.

For a test you could also swap the username for the password to see if your password is getting passed through to ps_automate correctly. 


Forum|alt.badge.img+2
  • Author
  • Veteran
  • 14 replies
  • November 5, 2025

Hi ​@jchandler ,
Here are the commands/parameters and the INI file content

 

Application command:
%programfiles%\BeyondTrust\pbpsmon\ps_automate.exe

 

Parameters:
ini="%programfiles%\BeyondTrust\pbpsmon\MSWebApp-vCentre.ini" TargetURL="https://vCentre/ui" BrowserName="msedge" UserName=%u Password=%p

 

INI file:

[General]
BrowserName=%browsername%
TargetURL=%targeturl%
FixupPassword=1
EnableLogging=1

[TaskSequence1]
XPathElement="//*[@id="username"]"
XPathValue=%username%

[TaskSequence2]
XPathElement="//*[@id="password"]"
XPathValue=%password%

[TaskSequence3]
XPathElement="/html/body/div[3]/form[1]/div/input[3]"
XPathAction="click"
WaitLoginWindowDelay=5000


  • BeyondTrust Employee
  • 106 replies
  • November 7, 2025

Hello ​@Jasper 

If you try using the %password% for your username you should see it typed out. Is it the correct password. 

Potentially some special character could be causing the issue?


Forum|alt.badge.img+2
  • Author
  • Veteran
  • 14 replies
  • November 10, 2025

@jchandler , I do see the password getting typed in but it stops on the part where my password has a space. Ex. my pwd is “This is my password”. I can see it type in the first 4 characters then stop where the space is supposed to be and then it comes up with an “Invalid credential error”.

 


  • BeyondTrust Employee
  • 106 replies
  • November 10, 2025

Hello ​@Jasper 

I was able to reproduce your issue. Try adding double quotes around your password field in your parmaeters.

 

ini="%programfiles%\BeyondTrust\pbpsmon\MSWebApp-vCentre.ini" TargetURL="https://vCentre/ui" BrowserName="msedge" UserName="%u" Password="%p"


Forum|alt.badge.img+2
  • Author
  • Veteran
  • 14 replies
  • November 10, 2025

@jchandler , have updated the parameters but still getting the same error.

 

 


  • BeyondTrust Employee
  • 106 replies
  • November 14, 2025

Hello ​@Jasper  

When the automation is typing the password Is it still only typing in the first 4 characters? 

In the dialog above if you manually type the correct password do you login successfully?