Skip to main content
Veteran
November 4, 2025
Question

Application launch via RDS generating invalid credential

  • November 4, 2025
  • 9 replies
  • 159 views

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
 

    9 replies

    BeyondTrust Employee
    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. 

    JasperAuthor
    Veteran
    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
    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?

    JasperAuthor
    Veteran
    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
    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"

    JasperAuthor
    Veteran
    November 10, 2025

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

     

     

    BeyondTrust Employee
    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?

     

    JasperAuthor
    Veteran
    November 16, 2025

    Hi ​@jchandler , if I type in my credentials manually, it is fine. The screenshot shows only the first character is entered under my password as my actual pwd has a space after the first character.

    BeyondTrust Employee
    November 17, 2025

    Hello ​@Jasper  

    It should work with a space. 

    For a test if you use a password without a space does it work? 

    You may want to open a case with the BT Support team and someone have a look. 

    Regards,

    John