Announcement

Collapse
No announcement yet.

Can I do a search for a particular file on all domain PC's?

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

  • Can I do a search for a particular file on all domain PC's?

    Hello everyone, is there a way for me to seach for a file on all the pc's in our small domain without having to map to each drive and run a search through the windows OS for the file?

  • #2
    Re: Can I do a search for a particular file on all domain PC's?

    You should be able to use either a Custom Tool or the Generate Macro function for this.

    The syntax for a Custom Tool would be something like:

    cmd.exe /x /c dir \\%E%\c$\somefile.dat /s >>c:\out.txt

    To run it you would select the computers you want to search in Hyena's right window, right-click and choose Tools, then the tool you created. When this runs you will have an output file called c:\out.txt that you can look through to see which computers it found the file on, and where.

    Comment


    • #3
      Re: Can I do a search for a particular file on all domain PC's?

      I seen this & gave it a go but when I run the macro it just creates a file with all the PC names that I run the macro on.

      What I'm I doing wrong?

      Comment


      • #4
        Re: Can I do a search for a particular file on all domain PC's?

        If you are following that example, create a Custom Tool under Tools->Settings->Tools. Then you will select your computers and run the Custom Tool that you create.

        Comment


        • #5
          Re: Can I do a search for a particular file on all domain PC's?

          Thanx for the reply

          It has worked now.

          If poss could you take me through the command switches in the line

          TIA......

          Comment


          • #6
            Re: Can I do a search for a particular file on all domain PC's?

            I have tried this and do not get an output file here are the changes I made
            cmd.exe /x /c dir \\%E%\c$\%Windir%\CyberWolf.exe /s >>c:\cydog.txt. I am trying to locate a file left behind by a virus. Do I have to make ATTRIB adjustments for a hidden file? Additionally, can I do something like this to search for reg file entries that are implemented by viruses?

            <div class="ubbcode-block"><div class="ubbcode-header">Quote:</div><div class="ubbcode-body">Originally posted by cmccullough:
            <span style="font-weight: bold">You should be able to use either a Custom Tool or the Generate Macro function for this.

            The syntax for a Custom Tool would be something like:

            cmd.exe /x /c dir \\%E%\c$\somefile.dat /s >>c:\out.txt

            To run it you would select the computers you want to search in Hyena's right window, right-click and choose Tools, then the tool you created. When this runs you will have an output file called c:\out.txt that you can look through to see which computers it found the file on, and where.</span></div></div>

            Comment


            • #7
              Re: Can I do a search for a particular file on all domain PC's?

              Are you running this as a Custom Tool? If so, add &pause to the end like:

              cmd.exe /x /c dir \\%E%\c$\%Windir%\CyberWolf.exe /s >>c:\cydog.txt &pause

              This should stop the window so you can see if you are getting any errors from that command.

              Comment


              • #8
                Re: Can I do a search for a particular file on all domain PC's?

                Well that is a good question. According to the instructions I should right click on the server and go to tools. That is not available when I right click, so I have been running it as a generate a macro entry. Is this incorrect?

                <div class="ubbcode-block"><div class="ubbcode-header">Quote:</div><div class="ubbcode-body">Originally posted by cmccullough:
                <span style="font-weight: bold">Are you running this as a Custom Tool? If so, add &pause to the end like:

                cmd.exe /x /c dir \\%E%\c$\%Windir%\CyberWolf.exe /s >>c:\cydog.txt &pause

                This should stop the window so you can see if you are getting any errors from that command.</span></div></div>

                Comment


                • #9
                  Re: Can I do a search for a particular file on all domain PC's?

                  If you add it as a Custom Tool under Tools->Settings->Tools following the instructions above, you'll be able to do this.

                  Comment


                  • #10
                    Re: Can I do a search for a particular file on all domain PC's?

                    Here's a tool I created from the example above that prompts for the drive, filename, and output file:
                    cmd.exe /x /c dir \\%E%\%P1 rive letter%$\%P2:Filename% /s >>%P3:Output File (path & name)%.txt

                    Comment


                    • #11
                      Re: Can I do a search for a particular file on all domain PC's?

                      I should have disabled Smilies. Here's how the line should have read:
                      cmd.exe /x /c dir \\%E%\%P1rive letter%$\%P2:Filename% /s >>%P3:Output File (path & name)%.txt

                      Comment

                      Working...
                      X