Announcement

Collapse
No announcement yet.

cmd pass autofill

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • cmd pass autofill

    Hello,

    I have an application witch requires Run as administrator, so i need that another app. start it when she needs to (every 2-5 min)
    I need to auto fill admins pass somehow.

    Best regards
    Aleksandr

  • #2
    Re: cmd pass autofill

    Why not starting the application directly using Windows task scheduler.

    /Rems

    This posting is provided "AS IS" with no warranties, and confers no rights.

    __________________

    ** Remember to give credit where credit's due **
    and leave Reputation Points for meaningful posts

    Comment


    • #3
      Re: cmd pass autofill

      Becouse dont know when it should start, it depends on speed and data loading of another app.
      so sheduler is not an option.

      Imagine you typing with notepad all the time and when you type "N" for example "c:\aaa.bat" should start as administrator
      The part that aaa.bet start is done, but question is how it start as administrator with autofill password.

      Comment


      • #4
        Re: cmd pass autofill

        Originally posted by a.kudriasov View Post
        Becouse dont know when it should start, it depends on speed and data loading of another app.
        so sheduler is not an option.

        Imagine you typing with notepad all the time and when you type "N" for example "c:\aaa.bat" should start as administrator
        The part that aaa.bet start is done, but question is how it start as administrator with autofill password.
        Confirm if I get this correctly,

        The user is working with an application called "Program-A".
        "Program-A" has an option for the user to launch an executable (e.g. after pressing the N key the executable "App2" starts).

        "App2" is in you case is the batch file, what is used to start an other application "Program-B" in the security context of an admin account.
        And it is not possible to start "App2" with alternate credentials from "Program-A"?

        Or, what you mean exactly with 'autofill password', does that perhaps mean "Program-B" pops up an logon box of its own asking for a user name and password?



        /Rems
        Last edited by Rems; 19th October 2011, 16:27.

        This posting is provided "AS IS" with no warranties, and confers no rights.

        __________________

        ** Remember to give credit where credit's due **
        and leave Reputation Points for meaningful posts

        Comment


        • #5
          Re: cmd pass autofill

          Correctly.
          And yes - no logon boxes.

          Comment


          • #6
            Re: cmd pass autofill

            Use Batch 1 to start PSexec, that PSexec's into the other computer using the slient option and runs the command as the User Administrator

            So...
            Batch 1
            Psexec \\Computer1 -u Domain\administrator -p Password C:\temp\Batch1.Bat

            While the batch file does have to have the admin password in plain text, you can get tricky and use a password file (what we do), so that there is only a single location storing the admin password in plain text.

            Wofen
            Good to be back....

            Comment


            • #7
              Re: cmd pass autofill

              Thanks it works fine

              Comment

              Working...
              X