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?
Announcement
Collapse
No announcement yet.
Can I do a search for a particular file on all domain PC's?
Collapse
X
-
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.
-
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
-
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
-
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
-
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%\%P1rive letter%$\%P2:Filename% /s >>%P3:Output File (path & name)%.txt
Comment
Comment