Announcement

Collapse
No announcement yet.

run batch file on multiple target hosts with Hyena?

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

  • run batch file on multiple target hosts with Hyena?

    Hi all,

    Just did a quick search and didn't find anything that dealt with this directly, so here goes:

    Using Hyena v6.6 Enterprise is there any way to execute/run a batch file (batch file stops service, imports reg key and restarts service) on multiple hosts?

    I had previously used psexec to do this, but wanted to know if Hyena had native support for this (or perhaps a scripting guru had come up with a "tool" addon?)

    Thanks for the assist and a great product! Hyena has come a loooooong way since when I last used it

    Cheers!

    auslander

  • #2
    Re: run batch file on multiple target hosts with Hyena?

    Actually I think psexec is going to be your best bet, and you can create a Custom Tool in Hyena to run it. Search the board for psexec and you should find some helpful tips.

    Comment


    • #3
      Re: run batch file on multiple target hosts with Hyena?

      To the best of my knowledge this isn't built in to Hyena nativley. Though you can make a psexec tool but unfortunatly you can only run it on 20 machines at one time. Hopefully in the future they will let us modify how many machines Hyena can run a tool against.

      I use a sharepoint for ALL my tools, edit accordingly
      <span style="font-weight: bold">Command Line</span>
      <span style="font-style: italic">\\servername\scripts\HyenaTools\Pstools\ps exec.exe \\%E% -u domainname\username -p password -c -f "\\servername\Scripts\HyenaTools\Scripts\filename. bat"</span>

      <span style="font-weight: bold">example batch file installing remote admin</span>
      <span style="font-style: italic">@ECHO OFF
      ECHO Installing Remote Admin 2.2 Service

      COPY "\\servername\Scripts\Hyenatools\RAdmin\r_server.e xe" "%WINDIR%\SYSTEM32\r_server.exe"
      COPY "\\servername\Scripts\Hyenatools\RAdmin\raddrv.dll " "%WINDIR%\SYSTEM32\raddrv.dll"
      COPY "\\vo-phx-fs05\Scripts\Hyenatools\RAdmin\admdll.dll" "%WINDIR%\SYSTEM32\admdll.dll"
      %WINDIR%\SYSTEM32\r_server.exe /install /silence
      %WINDIR%\regedit.exe /s \\servername\Scripts\Hyenatools\RAdmin\Client.reg
      \\servername\Scripts\Hyenatools\SC.EXE start r_server

      ECHO Remote Admin 2.2 Service Installed</span>

      You will need to get SC.exe from the resource kit. At least that's where I think it is

      [This message has been edited by Trammel (edited 01-18-2006).]

      Comment


      • #4
        Re: run batch file on multiple target hosts with Hyena?

        Thanks for the tips guys...I think I have a hybrid solution that will work--much appreciated!!

        Comment

        Working...
        X
        😀
        🥰
        🤢
        😎
        😡
        👍
        👎