Announcement

Collapse
No announcement yet.

Ask the command to send with psexec

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

  • Ask the command to send with psexec

    Hi.

    I did that tool :
    Code: cmd /c cls & psexec \\%S% -s \\srv\Fic\com.bat

    with this in my com.bat :
    Code:
    @echo off
    cls
    set /p cmd= Entrer la commande :
    %cmd%

    When i try it, it dones :
    Code:

    PsExec v1.96 - Execute processes remotely
    Copyright (C) 2001-2009 Mark Russinovich
    Sysinternals - www.sysinternals.com

    Starting \\srv\Fic\com.bat

    Entrer la commande : aze

    'a' n'est pas reconnu en tant que commande interne
    ou externe, un programme executable ou un fichier de commandes.
    Appuyez sur une touche pour continuer...
    \\srv\Fic\com.bat exited on WINXPVIRT
    UEL with error code 0.
    Appuyez sur une touche pour continuer...

    Why i get 'a' and not 'aze' n'est pas reconnu en tant que commande interne (= 'a' is not recognized as internal command)

    thx for your help

  • #2
    Re: Ask the command to send with psexec

    To remove Hyena from the equation, try getting it to run from your computer without using Hyena and see what happens that way.

    Comment


    • #3
      Re: Ask the command to send with psexec

      On my computer its ok i get "aze" and not only the first letter "a".

      Comment


      • #4
        Re: Ask the command to send with psexec

        So, when you go to the Command Prompt on your computer and run this command it works?

        psexec \\computer -s \\srv\Fic\com.bat

        And on your computer when you run Hyena and execute a Custom Tool with those same settings it doesn't?

        If this is the situation, please send screenshots showing all of this to [email protected] so we can see what's going on.

        Comment


        • #5
          Re: Ask the command to send with psexec

          No sry it doesnt work. I just tried the com.bat file.

          My problem is probably with psexec use.
          Any idea?

          Comment


          • #6
            Re: Ask the command to send with psexec

            Unfortunately we aren't sure. You would have to check with Sysinternals on that one.

            Comment

            Working...
            X